Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: in lue of→in lieu of (#2221)
Andrew Dunbar4f581788805b
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 6038bf017..f76a3f9fe 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -599,6 +599,13 @@ pub fn lint_group() -> LintGroup {"Corrects `I does` to `I do`.",LintKind::Agreement),+ "InLieuOf" => (+ ["in lue of"],+ ["in lieu of"],+ "Did you mean `in lieu of`?",+ "Corrects the misspelling `in lue of` to `in lieu of`.",+ LintKind::Spelling+ ),"InOfItself" => (["in of itself"],["in itself", "in and of itself"],diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex ebe0cfb6a..8980a2dad 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -917,6 +917,17 @@ fn corrects_i_does() {);}+// InLieuOf++#[test]+fn corrects_in_lue_of() {+ assert_suggestion_result(+ "Controller Emulation in lue of Direct Controller binding",+ lint_group(),+ "Controller Emulation in lieu of Direct Controller binding",+ );+}+// InAndOfItself#[test]fn detect_atomic_in_of_itself() {