Skip to content

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

fix: add "gatekeep" to `irregular_verbs.json` (#4785)

Andrew Dunbar1349a8682abb
diff --git a/harper-core/irregular_verbs.json b/harper-core/irregular_verbs.json
index 797920975..9b8fe7438 100644
--- a/harper-core/irregular_verbs.json
+++ b/harper-core/irregular_verbs.json
@@ -41,6 +41,7 @@
["forget", "forgot", "forgotten"],
["forgo", "forwent", "forgone"],
["freeze", "froze", "frozen"],
+ ["gatekeep", "gatekept", "gatekept"],
"// get -- got -- gotten",
["get", "got", "got"],
["give", "gave", "given"],
diff --git a/harper-core/src/linting/regular_irregulars.rs b/harper-core/src/linting/regular_irregulars.rs
index c41db407f..53b4cd4d6 100644
--- a/harper-core/src/linting/regular_irregulars.rs
+++ b/harper-core/src/linting/regular_irregulars.rs
@@ -363,6 +363,18 @@ mod tests {
"Rune is a TUI editor, so I fed the same terminal sequences to the old and new apps.",
);
}
+
+ #[test]
+ fn fix_gatekepped() {
+ use crate::Dialect;
+ use crate::spell::FstDictionary;
+
+ assert_suggestion_result(
+ "Foundational principles between languages are the same, I don’t understand why positions are gatekeeped based on implementation trivia.",
+ crate::linting::LintGroup::new_curated(FstDictionary::curated(), Dialect::American),
+ "Foundational principles between languages are the same, I don’t understand why positions are gatekept based on implementation trivia.",
+ );
+ }
}
mod adjectives {