Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: australian words, correct american annotations
hippietrail03d8f601f56a
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex ac5c3c0b8..7303543cf 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -18933,7 +18933,7 @@ cooktop/1SMcookware/1SMcool/~514MDRYZTGPScoolant/~1SM-cooler/~15M+cooler/~15MScoolie/1SMcoolish/5coolness/1M@@ -23219,6 +23219,7 @@ escritoire/1MSescrow/14SMescudo/1SMescutcheon/~1SM+esky/1MS_ # Australian genericised brand name of a cooleresophageal/~5esophagi/1esophagus/~1M@@ -38162,7 +38163,7 @@ picket/~14ZGMDRSpickings/1Mpickle/~14MGDSpickpocket/14SM-pickup/~14MS+pickup/~1MS # removed `4` verb which applies to `pick up`picky/51PTRpicnic/~14MSpicnicked/4@@ -49934,6 +49935,7 @@ usurp/4SDRZGusurpation/1Musurper/~1Musury/~1M+ute/1SM_ # Australian pickup truckutensil/1SMuteri/1uterine/~51diff --git a/harper-core/src/linting/spell_check.rs b/harper-core/src/linting/spell_check.rsindex 6e649e91c..f3818d558 100644--- a/harper-core/src/linting/spell_check.rs+++ b/harper-core/src/linting/spell_check.rs@@ -270,4 +270,22 @@ mod tests {// 0,// )// }++ #[test]+ fn australian_words_flagged_for_american_english() {+ assert_lint_count(+ "There's an esky full of beers in the back of the ute.",+ SpellCheck::new(FstDictionary::curated(), Dialect::American),+ 2,+ );+ }++ #[test]+ fn american_words_not_flagged_for_australian_english() {+ assert_lint_count(+ "In general, utes have unibody construction while pickups have frames.",+ SpellCheck::new(FstDictionary::curated(), Dialect::Australian),+ 0,+ );+ }}