Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: that's here nor there→that's neither here nor there (#3606)
Andrew Dunbar6fc02623b3ab
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex ad5f21885..44a89f80e 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -5180,6 +5180,13 @@"label": "Incident Report"}},+ {+ "Bool": {+ "name": "NeitherHereNorThere",+ "state": true,+ "label": "Neither Here Nor There"+ }+ },{"Bool": {"name": "TheEntiretyOf",diff --git a/harper-core/src/linting/weir_rules/NeitherHereNorThere/ItsHereNorThere.weir b/harper-core/src/linting/weir_rules/NeitherHereNorThere/ItsHereNorThere.weirnew file mode 100644index 000000000..30472371f--- /dev/null+++ b/harper-core/src/linting/weir_rules/NeitherHereNorThere/ItsHereNorThere.weir@@ -0,0 +1,9 @@+expr main (it's here nor there)++let message "Did you mean `it's neither here nor there`?"+let description "Corrects `it's here nor there` to the standard idiom `it's neither here nor there`."+let kind "Usage"+let becomes "it's neither here nor there"++test "All psychology but it's here nor there to me." "All psychology but it's neither here nor there to me."+test "Not that it's here nor there, but I also don't log short films or TV series." "Not that it's neither here nor there, but I also don't log short films or TV series."\ No newline at end of filediff --git a/harper-core/src/linting/weir_rules/NeitherHereNorThere/ThatsHereNorThere.weir b/harper-core/src/linting/weir_rules/NeitherHereNorThere/ThatsHereNorThere.weirnew file mode 100644index 000000000..756d8c89c--- /dev/null+++ b/harper-core/src/linting/weir_rules/NeitherHereNorThere/ThatsHereNorThere.weir@@ -0,0 +1,9 @@+expr main (that's here nor there)++let message "Did you mean `that's neither here nor there`?"+let description "Corrects `that's here nor their` to the standard idiom `that's neither here nor there`."+let kind "Usage"+let becomes "that's neither here nor there"++test "modifications of existing inventions is what I do, but that's neither here nor there" "modifications of existing inventions is what I do, but that's neither here nor there"+test "(Ideally both would use a small say ~3px threshold but that's here nor there…)" "(Ideally both would use a small say ~3px threshold but that's neither here nor there…)"