Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat:a fare bit→a fair bit (#1266)
Andrew Dunbar5eefaa0a7b56
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex cc94e9a3f..14181ed14 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -1225,6 +1225,12 @@ pub fn lint_group() -> LintGroup {"Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.","Corrects `adieu` to `ado`."),+ "FairBit" => (+ ["fare bit"],+ ["fair bit"],+ "A `decent amount` is a `fair bit`. `Fare` is the price of a ticket.",+ "Corrects malapropisms of `a fair bit`."+ ),});group.set_all_rules_to(Some(true));@@ -2659,4 +2665,13 @@ mod tests {"After much ado this functionality is now available.",);}++ #[test]+ fn corrects_fair_bit() {+ assert_suggestion_result(+ "I've read through a fare bit of the ecosystem framework, but I am not clear on what is modified...",+ lint_group(),+ "I've read through a fair bit of the ecosystem framework, but I am not clear on what is modified...",+ );+ }}