Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: combinate→combine (#4178)
Andrew Dunbar1f6cac25840a
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 58df2b79e..9dce28fc6 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -4431,6 +4431,13 @@"label": "Chock Full"}},+ {+ "Bool": {+ "name": "Combinate",+ "state": true,+ "label": "Combinate"+ }+ },{"Bool": {"name": "ComprisesOf",diff --git a/harper-core/src/linting/phrase_set_corrections/mod.rs b/harper-core/src/linting/phrase_set_corrections/mod.rsindex d1ecb00ae..ad49ec1f3 100644--- a/harper-core/src/linting/phrase_set_corrections/mod.rs+++ b/harper-core/src/linting/phrase_set_corrections/mod.rs@@ -111,6 +111,17 @@ pub fn lint_group() -> LintGroup {"Corrects extraneous apostrophe in `client's side` and `server's side`.",LintKind::Punctuation),+ "Combinate" => (+ &[+ ("combinate", "combine"),+ ("combinated", "combined"),+ ("combinating", "combining"),+ ("combinates", "combines"),+ ],+ "Did you mean `combine` rather than the nonstandard `combinate`?",+ "Suggests replacing the nonstandard verb `combinate` with the standard `combine`.",+ LintKind::Nonstandard+ ),"CompulseToCompel" => (&[("compulse", "compel"),diff --git a/harper-core/src/linting/phrase_set_corrections/tests.rs b/harper-core/src/linting/phrase_set_corrections/tests.rsindex bd683e461..63b07c270 100644--- a/harper-core/src/linting/phrase_set_corrections/tests.rs+++ b/harper-core/src/linting/phrase_set_corrections/tests.rs@@ -254,6 +254,44 @@ fn correct_servers_side() {);}+// Combinate++#[test]+fn correct_combinate() {+ assert_suggestion_result(+ "I'm at chapter 11 and I can't craft and combinate abyss gear, what should I do to unlock both of them",+ test_linter(),+ "I'm at chapter 11 and I can't craft and combine abyss gear, what should I do to unlock both of them",+ );+}++#[test]+fn correct_combinated() {+ assert_suggestion_result(+ "NFS WORLD COMBINATED MAP (NEW!)",+ test_linter(),+ "NFS WORLD COMBINED MAP (NEW!)",+ );+}++#[test]+fn correct_combinates() {+ assert_suggestion_result(+ "is there a game that combinates ottd and rts?",+ test_linter(),+ "is there a game that combines ottd and rts?",+ );+}++#[test]+fn correct_combinating() {+ assert_suggestion_result(+ "This section discusses how the color combinating is accomplished",+ test_linter(),+ "This section discusses how the color combining is accomplished",+ );+}+// CompulseToCompel#[test]