Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: a whole another/nother/'nother → a whole other (#4145)
Andrew Dunbard54f525782ae
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 953e071a2..5c4a73f4e 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -4172,6 +4172,13 @@"label": "A Ways To Go"}},+ {+ "Bool": {+ "name": "AWholeOther",+ "state": true,+ "label": "A Whole Other"+ }+ },{"Bool": {"name": "BadRap",diff --git a/harper-core/src/linting/weir_rules/AWholeOther.weir b/harper-core/src/linting/weir_rules/AWholeOther.weirnew file mode 100644index 000000000..4ae3af332--- /dev/null+++ b/harper-core/src/linting/weir_rules/AWholeOther.weir@@ -0,0 +1,13 @@+expr main [(a whole another), (a whole nother), (a whole 'nother)]++let message "Did you mean the standard `a whole other`?"+let description "Corrects `a whole another`/`a whole 'nother` to `a whole other`."+let kind "Usage"+let becomes "a whole other"++test "Andrew was toxic in his article but had some arguments, Theo is in a whole another level of toxicity" "Andrew was toxic in his article but had some arguments, Theo is in a whole other level of toxicity"+test "Why it's there is a whole nother problem." "Why it's there is a whole other problem."+test "but it adds a whole 'nother layer onto what is already 2 (or 3, I forget) layers of complexity" "but it adds a whole other layer onto what is already 2 (or 3, I forget) layers of complexity"+test "smart apostrophes are a whole ’nother thing" "smart apostrophes are a whole other thing"++allows "one workflow may need to be singular across the host as a whole, another maybe singular across that tenant, and yet another may be ..."