Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: add more patterns to `ExtendOrExtent` (#4637)
Andrew Dunbar64f35cd08743
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 0c0ca2494..1e7d87cbe 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -5188,23 +5188,23 @@},{"Bool": {- "name": "Insensitive",+ "name": "InOnesDefense","state": true,- "label": "Insensitive"+ "label": "In Ones Defense"}},{"Bool": {- "name": "InspiredBy",+ "name": "Insensitive","state": true,- "label": "Inspired By"+ "label": "Insensitive"}},{"Bool": {- "name": "InOnesDefense",+ "name": "InspiredBy","state": true,- "label": "In Ones Defense"+ "label": "Inspired By"}},{diff --git a/harper-core/src/linting/phrase_set_corrections/mod.rs b/harper-core/src/linting/phrase_set_corrections/mod.rsindex 6a00b279d..ad1c0b5aa 100644--- a/harper-core/src/linting/phrase_set_corrections/mod.rs+++ b/harper-core/src/linting/phrase_set_corrections/mod.rs@@ -332,7 +332,9 @@ pub fn lint_group() -> LintGroup {("a certain extend", "a certain extent"),("to an extend", "to an extent"),("to some extend", "to some extent"),- ("to the extend that", "to the extent that")+ ("to the extend that", "to the extent that"),+ ("greater extend", "greater extent"),+ ("lesser extend", "lesser extent")],"Use `extent` for the noun and `extend` for the verb.","Corrects `extend` to `extent` when the context is a noun.",diff --git a/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs b/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rsindex 887468c17..2be17bd33 100644--- a/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs+++ b/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs@@ -1081,6 +1081,24 @@ fn correct_to_an_extend() {);}+#[test]+fn correct_lesser_extend() {+ assert_suggestion_result(+ "Unlike the US (and to a lesser extend, Europe), Chinese do not have a majority of their wealth invested in stocks.",+ test_linter(),+ "Unlike the US (and to a lesser extent, Europe), Chinese do not have a majority of their wealth invested in stocks.",+ );+}++#[test]+fn correct_greater_extend() {+ assert_suggestion_result(+ "which seems to lead to columns being loaded to a greater extend than necessary",+ test_linter(),+ "which seems to lead to columns being loaded to a greater extent than necessary",+ );+}+// FlauntForFlout#[test]