Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

Merge branch 'master' into could-of-should-of-would-of

Elijah Potter7b2f89db4baa
diff --cc harper-core/src/linting/matcher.rs
index 4b6b0b5f1,f95d54a33..7e6682b7c
--- a/harper-core/src/linting/matcher.rs
+++ b/harper-core/src/linting/matcher.rs
@@@ -200,18 -200,10 +200,22 @@@ impl Matcher
// wrong set phrases and collocations
triggers.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",
+ "discuss", "about" => "discuss",
+ "discussed", "about" => "discussed",
+ "discusses", "about" => "discusses",
+ "discussing", "about" => "discussing",
"same", "than" => "same as",
"Same", "than" => "same as"
});