Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: add "except if" and "except when" for "unless if" (#1318)
Andrew Dunbar973b7b82353b
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 70f02606b..964fbbec1 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -1222,9 +1222,9 @@ pub fn lint_group() -> LintGroup {),"Unless" => (["unless if"],- ["unless"],- "Use `unless` on its own.",- "Corrects `unless if` to `unless`."+ ["unless", "except if", "except when"],+ "`Unless if` is not idiomatic English. `Unless`, `except if`, and `except when` express a condition that is true in all cases except one.",+ "Corrects `unless if`."),"WantBe" => (["want be"],