Skip to content

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

feat: kinda of→kind of / kinda (#1363)

Andrew Dunbar3284b4f7730f
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index 13487cb98..57d7a0a67 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -1278,6 +1278,12 @@ pub fn lint_group() -> LintGroup {
"This word has a more standard, more common synonym.",
"Suggests the more standard and common synonym `brutality`."
),
+ "KindOf" => (
+ ["kinda of"],
+ ["kind of", "kinda"],
+ "`Kinda` already means `kind of`, so `kinda of` is redundant.",
+ "Corrects `kinda of` to `kind of`."
+ ),
"InNeedOf" => (
["in need for"],
["in need of"],
@@ -2799,6 +2805,15 @@ mod tests {
)
}
+ #[test]
+ fn corrects_kinda_of() {
+ assert_suggestion_result(
+ "Some kinda of Sync issue only with 0.79.1",
+ lint_group(),
+ "Some kind of Sync issue only with 0.79.1",
+ );
+ }
+
#[test]
fn corrects_in_need_of() {
assert_suggestion_result(