Skip to content

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

feat: as log as→as long as; ad nausea→ad nauseam (#4655)

Andrew Dunbar30ad6e151094
diff --git a/harper-core/src/linting/weir_rules/AdNauseam/AdNausea.weir b/harper-core/src/linting/weir_rules/AdNauseam/AdNausea.weir
new file mode 100644
index 000000000..27d5a5d7e
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/AdNauseam/AdNausea.weir
@@ -0,0 +1,9 @@
+expr main (ad nausea)
+
+let message "The correct Latin phrase is `ad nauseam`. `Ad nausea` is a common eggcorn."
+let description "Corrects the eggcorn `ad nausea` to the standard Latin phrase `ad nauseam`."
+let kind "Eggcorn"
+let becomes "ad nauseam"
+
+test "U dont get why folks repeat this shit ad nausea, its technically not possible and no amount of progress will change that." "U dont get why folks repeat this shit ad nauseam, its technically not possible and no amount of progress will change that."
+test "then typing the next character, then clicking right after it, etc., etc., ad nausea" "then typing the next character, then clicking right after it, etc., etc., ad nauseam"
diff --git a/harper-core/src/linting/weir_rules/AdNauseam.weir b/harper-core/src/linting/weir_rules/AdNauseam/AsNauseam.weir
similarity index 100%
rename from harper-core/src/linting/weir_rules/AdNauseam.weir
rename to harper-core/src/linting/weir_rules/AdNauseam/AsNauseam.weir
diff --git a/harper-core/src/linting/weir_rules/AsLongAs.weir b/harper-core/src/linting/weir_rules/AsLongAs.weir
index 929369104..1ed4b56a9 100644
--- a/harper-core/src/linting/weir_rules/AsLongAs.weir
+++ b/harper-core/src/linting/weir_rules/AsLongAs.weir
@@ -1,10 +1,11 @@
-expr main [(aslong as), (as long that)]
+expr main [(aslong as), (as long that), (as log as)]
-let message "`As long` is two words and the last word should be `as`."
-let description "Corrects `aslong as` and `as long that` to `as long as`."
+let message "Did you mean `as long as`?"
+let description "Corrects misspelled or misused forms of the phrase `as long as`."
let kind "Usage"
let becomes "as long as"
test "server loads up fine but cant log on client side aslong as the plugin is installed" "server loads up fine but cant log on client side as long as the plugin is installed"
test "Allow creation of assets with a replicas > current cluster size as long that there is quorum." "Allow creation of assets with a replicas > current cluster size as long as there is quorum."
test "As long that it has the right symbols" "As long as it has the right symbols"
+test "As log as your don't desire a house to do the thinking in ;)" "As long as your don't desire a house to do the thinking in ;)"