Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: initiatively→proactively / initially (#2432)
Andrew Dunbar025385123f3e
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex a8759cf5c..63e21224b 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -613,6 +613,13 @@ pub fn lint_group() -> LintGroup {"Corrects `I does` to `I do`.",LintKind::Agreement),+ "Initiatively" => (+ ["initiatively"],+ ["proactively", "initially"],+ "Did you mean `proactive` (taking initiative, acting in advance) or `initially` (at first, in the beginning)?",+ "Corrects nonstandard `initiatively`.",+ LintKind::Nonstandard+ ),"InLieuOf" => (["in lue of"],["in lieu of"],diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 4a624083b..105bd5130 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -959,6 +959,16 @@ fn corrects_i_does() {);}+// Initiatively+#[test]+fn corrects_initiatively_2422() {+ assert_suggestion_result(+ "I have initiatively signed up for the course.",+ lint_group(),+ "I have proactively signed up for the course.",+ );+}+// InLieuOf#[test]