Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
Implements #505 could of, should of, would of -> ... have
hippietraild868a2f4c7e0
diff --git a/harper-core/src/linting/matcher.rs b/harper-core/src/linting/matcher.rsindex b034adf2c..4b6b0b5f1 100644--- a/harper-core/src/linting/matcher.rs+++ b/harper-core/src/linting/matcher.rs@@ -200,6 +200,18 @@ impl Matcher {// wrong set phrases and collocationstriggers.extend(pt! {+ "could", "of" => "could have",+ "could", "of" => "could've",+ "couldn't", "of" => "couldn't have",+ "had", "of" => "had have",+ "had", "of" => "had've",+ "hadn't", "of" => "hadn't have",+ "should", "of" => "should have",+ "should", "of" => "should've",+ "shouldn't", "of" => "shouldn't have",+ "would", "of" => "would have",+ "would", "of" => "would've",+ "wouldn't", "of" => "wouldn't have","same", "than" => "same as","Same", "than" => "same as"});