mirror of
https://github.com/Automattic/harper.git
synced 2025-12-23 08:48:15 +00:00
feat: as nauseam→ad nauseam (#2354)
Co-authored-by: Elijah Potter <me@elijahpotter.dev>
This commit is contained in:
parent
d47b045dca
commit
e784f9b212
3 changed files with 26 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue