diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict index c0b19fce..2b1dec9d 100644 --- a/harper-core/dictionary.dict +++ b/harper-core/dictionary.dict @@ -35183,7 +35183,7 @@ naughtily/Ry naughtiness/Nmg naughty/~J^>Vp nausea/~Nmg -nauseam +nauseam # only used in the Latin phrase `ad nauseam` nauseate/VbGdS nauseating/JYV6 nauseous/JYp diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rs index 7815879e..67faf26b 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.rs index 2970c98c..39fb3c09 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() {