Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: different messages for wrong word vs missing hyphen (#1354)
Andrew Dunbar310191f69962
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex 5501d7ae6..e7b45f314 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -744,12 +744,17 @@ pub fn lint_group() -> LintGroup {"Corrects `worst and worst` to `worse and worse` for proper comparative usage."),"WorseCaseScenario" => (- ["worse case scenario", "worse-case scenario", "worse-case-scenario",- "worst case scenario", "worst-case-scenario"],+ ["worse case scenario", "worse-case scenario", "worse-case-scenario"],["worst-case scenario"],"Use `worst` for referring to the worst possible scenario. (`Worse` is for comparing)","Corrects `worst-case scenario` when the hyphen is missing or `worse` is used instead of `worst`."),+ "WorstCaseScenario" => (+ ["worst case scenario", "worst-case-scenario"],+ ["worst-case scenario"],+ "Hyphenate `worst-case`.",+ "Corrects `worst-case scenario` when the hyphen is missing or `worse` is used instead of `worst`."+ ),"WorseThan" => (["worst than"],["worse than"],