Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: statue of limitations→statute (#1510)
Andrew Dunbar1a15050c4dbf
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 88034cd2e..65654d0fc 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -1166,6 +1166,12 @@ pub fn lint_group() -> LintGroup {"Did you mean `state of the art`?","Detects incorrect usage of `state of art` and suggests `state of the art` as the correct phrase."),+ "StatuteOfLimitations" => (+ ["statue of limitations"],+ ["statute of limitations"],+ "A `statue` is a sculpture; in legal terms, the correct word is `statute`.",+ "Corrects `statue of limitations` to `statute of limitations`."+ ),"SufficeItToSay" => (["suffice to say"],["suffice it to say"],diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 3f8df570f..fd8910a01 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -1635,6 +1635,16 @@ fn spacial_attention() {// StateOfTheArt// -none-+// StatuteOfLimitations+#[test]+fn statute_of_limitations() {+ assert_suggestion_result(+ "Shouldn't there be a grandfathered-in or statue of limitations for posts before the original punishment?",+ lint_group(),+ "Shouldn't there be a grandfathered-in or statute of limitations for posts before the original punishment?",+ );+}+// SufficeItToSay#[test]fn suffice_it_to_say() {