Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: round about → roundabout (#4793)
Andrew Dunbar5414078470ac
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 992a5cefe..24ee7e33b 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -740,6 +740,13 @@"label": "Regardless"}},+ {+ "Bool": {+ "name": "Roundabout",+ "state": true,+ "label": "Roundabout"+ }+ },{"Bool": {"name": "Shortcoming",diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rsindex 6330b6c37..a40cc3c0e 100644--- a/harper-core/src/linting/closed_compounds.rs+++ b/harper-core/src/linting/closed_compounds.rs@@ -70,6 +70,7 @@ pub fn lint_group() -> LintGroup {"Postpone" => (&["post pone"][..], "postpone"),"Proofread" => (&["proof read"][..], "proofread"),"Regardless" => (&["regard less"][..], "regardless"),+ "Roundabout" => (&["round about"][..], "roundabout"),"Shortcoming" => (&["short coming"][..], "shortcoming"),"Shortcomings" => (&["short comings"][..], "shortcomings"),"Somebody" => (&["some body"][..], "somebody"),@@ -437,4 +438,13 @@ mod tests {"Indeed, most users will experience major version updates with absolutely zero fanfare.",);}++ #[test]+ fn round_about() {+ assert_suggestion_result(+ "This might be a very round about way to sort right to repair.",+ lint_group(),+ "This might be a very roundabout way to sort right to repair.",+ );+ }}