Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: as nauseam→ad nauseam (#2354)
Andrew Dunbare784f9b21267
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex c0b19fcef..2b1dec9d6 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -35183,7 +35183,7 @@ naughtily/Rynaughtiness/Nmgnaughty/~J^>Vpnausea/~Nmg-nauseam+nauseam # only used in the Latin phrase `ad nauseam`nauseate/VbGdSnauseating/JYV6nauseous/JYpdiff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 7815879ed..67faf26b6 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -44,6 +44,13 @@ pub fn lint_group() -> LintGroup {"Corrects `a couple of more` to `a couple more`.",LintKind::Redundancy),+ "AdNauseam" => (+ ["as nauseam"],+ ["ad nauseam"],+ "This phrase comes from Latin, where `ad` means `to`.",+ "Corrects `as nauseam` to `ad nauseam`.",+ LintKind::Spelling+ ),"AfterAWhile" => (["after while"],["after a while"],diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 2970c98c8..39fb3c097 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -15,6 +15,24 @@ fn corrects_a_couple_of_more() {)}+// AdNauseam+#[test]+fn corrects_as_nauseam_1() {+ assert_suggestion_result(+ "As you say, discussed as nauseam, but no nearer a solution.",+ lint_group(),+ "As you say, discussed ad nauseam, but no nearer a solution.",+ );+}+#[test]+fn corrects_as_nauseam_2() {+ assert_suggestion_result(+ "no more autism please, hearing about it as nauseam is starting to make me sick",+ lint_group(),+ "no more autism please, hearing about it ad nauseam is starting to make me sick",+ );+}+// AfterAWhile#[test]fn correct_after_while() {