Skip to content

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

feat: max exodus→mass exodus (#3637)

Andrew Dunbar7551f6d425b8
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index e20c6aa6b..187ee6bc1 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5187,6 +5187,13 @@
"label": "As How"
}
},
+ {
+ "Bool": {
+ "name": "MassExodus",
+ "state": true,
+ "label": "Mass Exodus"
+ }
+ },
{
"Bool": {
"name": "LeavingInDroves",
diff --git a/harper-core/src/linting/weir_rules/MassExodus.weir b/harper-core/src/linting/weir_rules/MassExodus.weir
new file mode 100644
index 000000000..f792635da
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/MassExodus.weir
@@ -0,0 +1,9 @@
+expr main (max exodus)
+
+let message "Corrects `max exodues` to `mass exodus`."
+let description "Corrects the eggcorn `max exodues` to the idiomatic `mass exodus`."
+let kind "Eggcorn"
+let becomes "mass exodus"
+
+test "If we simplified the tax code it would help curb the max exodus of that money" "If we simplified the tax code it would help curb the mass exodus of that money"
+test "This triggers a max exodus as everyone wants out before their home values are underwater" "This triggers a mass exodus as everyone wants out before their home values are underwater"