Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: adieu→ado (#1256)
Andrew Dunbar4d53eb1c634b
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex 9057a7ad3..cc94e9a3f 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -1212,7 +1212,19 @@ pub fn lint_group() -> LintGroup {["definite articles"],"The correct term for `the` is `definite article`.","The name of the word `the` is `definite article`."- )+ ),+ "FurtherAdo" => (+ ["further adieu"],+ ["further ado"],+ "Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.",+ "Corrects `adieu` to `ado`."+ ),+ "MuchAdo" => (+ ["much adieu"],+ ["much ado"],+ "Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.",+ "Corrects `adieu` to `ado`."+ ),});group.set_all_rules_to(Some(true));@@ -2629,4 +2641,22 @@ mod tests {".. definite articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",);}++ #[test]+ fn corrects_further_ado() {+ assert_suggestion_result(+ "... but we finally hit a great spot, so without further adieu.",+ lint_group(),+ "... but we finally hit a great spot, so without further ado.",+ );+ }++ #[test]+ fn corrects_much_ado() {+ assert_suggestion_result(+ "After much adieu this functionality is now available.",+ lint_group(),+ "After much ado this functionality is now available.",+ );+ }}