Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat:a couple of more→a couple more (#1374)

Andrew Dunbarc7abaa1b04fc
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index 8e545861f..13487cb98 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -1290,6 +1290,12 @@ pub fn lint_group() -> LintGroup {
"The phrase is `peace of mind`, meaning `calm`. A `piece` is a `part` of something.",
"Corrects `piece of mind` to `peace of mind`."
),
+ "ACoupleMore" => (
+ ["a couple of more"],
+ ["a couple more"],
+ "The correct wording is `a couple more`, without the `of`.",
+ "Corrects `a couple of more` to `a couple more`."
+ ),
});
group.set_all_rules_to(Some(true));
@@ -2810,4 +2816,13 @@ mod tests {
"A Discord bot that gives you peace of mind knowing you are free from obnoxious intrusions in a Discord Voice Channel",
)
}
+
+ #[test]
+ fn corrects_a_couple_of_more() {
+ assert_suggestion_result(
+ "There are a couple of more rules that could be added, how can I contribute?",
+ lint_group(),
+ "There are a couple more rules that could be added, how can I contribute?",
+ )
+ }
}