Skip to content

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

chore: add "one fowl swoop" to "one foul swoop" and rename from "in one fell swoop" (#2758)

Andrew Dunbara707bbdb9b2f
diff --git a/harper-core/src/linting/weir_rules/InOneFellSwoop.weir b/harper-core/src/linting/weir_rules/InOneFellSwoop.weir
deleted file mode 100644
index 71ea3d7e7..000000000
--- a/harper-core/src/linting/weir_rules/InOneFellSwoop.weir
+++ /dev/null
@@ -1,7 +0,0 @@
-expr main (in one foul swoop)
-
-let message "Use the correct phrase for something happening suddenly."
-let description "Corrects `in one foul swoop` to `in one fell swoop`, preserving the phrase’s original meaning of sudden and complete action."
-let kind "Eggcorn"
-let becomes "in one fell swoop"
-
diff --git a/harper-core/src/linting/weir_rules/OneFellSwoop.weir b/harper-core/src/linting/weir_rules/OneFellSwoop.weir
new file mode 100644
index 000000000..d7bbcd6d6
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/OneFellSwoop.weir
@@ -0,0 +1,9 @@
+expr main [(one foul swoop), (one fowl swoop)]
+
+let message "Use the correct phrase for something happening suddenly."
+let description "Corrects `one foul swoop` to `one fell swoop`, preserving the phrase’s original meaning of sudden and complete action."
+let kind "Eggcorn"
+let becomes "one fell swoop"
+
+test "I just want to turn OFF all of the Controllers with one foul swoop." "I just want to turn OFF all of the Controllers with one fell swoop."
+test "I am trying to delete the image and it's associated thumbnail in one fowl swoop." "I am trying to delete the image and it's associated thumbnail in one fell swoop."
\ No newline at end of file