feat: as nauseam→ad nauseam (#2354)

Co-authored-by: Elijah Potter <me@elijahpotter.dev>
This commit is contained in:
Andrew Dunbar 2025-12-23 04:38:11 +08:00 committed by GitHub
parent d47b045dca
commit e784f9b212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 1 deletions

View file

@ -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

View file

@ -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"],

View file

@ -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() {