Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore(dict): add surveilled and surveilling (#4470) (#4482)
yi11193f5c1edd75d
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex ee9faffbd..4a2de3b51 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -48326,6 +48326,8 @@ surveil/VSsurveilled/VtTsurveilling/V6surveillance/~Ng+surveilled/JVtT+surveilling/V6Nsurvey/~NSVdGrsurvey'ssurveying/~NgVdiff --git a/harper-core/src/linting/spell_check.rs b/harper-core/src/linting/spell_check.rsindex 7999d37d2..792035657 100644--- a/harper-core/src/linting/spell_check.rs+++ b/harper-core/src/linting/spell_check.rs@@ -979,4 +979,21 @@ mod tests {assert_no_lints(source, test_linter());}}++ #[test]+ fn allows_surveilled_and_surveilling() {+ assert_no_lints(+ "The suspect was closely surveilled by the agents.",+ test_linter(),+ );+ assert_no_lints("They were surveilling the premises.", test_linter());+ assert_no_lints(+ "The suspect was closely surveilled by the agents.",+ SpellCheck::new(FstDictionary::curated(), Dialect::British),+ );+ assert_no_lints(+ "They were surveilling the premises.",+ SpellCheck::new(FstDictionary::curated(), Dialect::British),+ );+ }}