Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): add additional rules
Elijah Potter4c2b0896b989
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex f7c090b23..4d31dc5a9 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -240,7 +240,31 @@ pub fn lint_group() -> LintGroup {["in the"],"Did you mean 'in the'?","Detects and corrects a spacing error where 'in the' is mistakenly written as `int he`. Proper spacing is essential for readability and grammatical correctness in common phrases."- )+ ),+ "WillContain" => (+ "will contains",+ ["will contain"],+ "Did you mean 'will contain'?",+ "Incorrect verb form: 'will' should be followed by the base form 'contain'."+ ),+ "IsKnownFor" => (+ "is know for",+ ["is known for"],+ "Did you mean 'is known for'?",+ "Typo: 'known' is the correct past participle."+ ),+ "PointIsMoot" => (+ "your point is mute",+ ["your point is moot"],+ "Did you mean 'your point is moot'?",+ "Typo: 'moot' (meaning debatable) is correct rather than 'mute'."+ ),+ "ByAccident" => (+ "on accident",+ ["by accident"],+ "Did you mean 'by accident'?",+ "Incorrect preposition: 'by accident' is the idiomatic expression."+ ),});group.add("FastPaste", Box::new(MapPhraseLinter::new(@@ -371,4 +395,9 @@ mod tests {"My dotfiles for my operating systems and other configurations.",);}++ #[test]+ fn point_is_moot() {+ assert_suggestion_result("Your point is mute.", lint_group(), "Your point is moot.");+ }}