Skip to content

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

Add some political science terms to the dictionary (#2441)

Inhishonor8857c5ef789b
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index a010916c0..65fbedfd1 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -32297,6 +32297,8 @@ localhost/NSg
localisation/Nwg!_₹
localise/VdSG!_₹
localish/J
+localism/Nmg
+localist/JNgs
locality/~NSg
localization/~Nwg
localize/VdSG>
@@ -46299,6 +46301,8 @@ stationary/~JN
stationer/Ng
stationery/~NmgJ
stationmaster/NS
+statism/Nmg
+statist/JNgs
statistic/~JNgSV
statistical/~JY
statistician/~NSg
diff --git a/harper-core/tests/run_tests.rs b/harper-core/tests/run_tests.rs
index ed661b51a..38f7d0a3b 100644
--- a/harper-core/tests/run_tests.rs
+++ b/harper-core/tests/run_tests.rs
@@ -85,6 +85,7 @@ create_test!(pr_452.md, 2, Dialect::American);
create_test!(hex_basic_clean.md, 0, Dialect::American);
create_test!(hex_basic_dirty.md, 1, Dialect::American);
create_test!(misc_closed_compound_clean.md, 0, Dialect::American);
+create_test!(statist_localist.md, 0, Dialect::American);
create_test!(yogurt_british_clean.md, 0, Dialect::British);
create_test!(issue_1581.md, 0, Dialect::British);
create_test!(issue_2054.md, 6, Dialect::British);
diff --git a/harper-core/tests/test_sources/statist_localist.md b/harper-core/tests/test_sources/statist_localist.md
new file mode 100644
index 000000000..c7d0abd18
--- /dev/null
+++ b/harper-core/tests/test_sources/statist_localist.md
@@ -0,0 +1,5 @@
+These villages run the gamut from statist too localist.
+
+Their pedigree can be traced back to Plato, the father of statism.
+
+But the localism of France at the time should not be underestimated.