Skip to content

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

feat: with one fell swoop → in/at one fell swoop (#4645)

Andrew Dunbar04ba445a0ce2
diff --git a/harper-core/src/linting/weir_rules/OneFellSwoop.weir b/harper-core/src/linting/weir_rules/OneFellSwoop/FoulFowl.weir
similarity index 100%
rename from harper-core/src/linting/weir_rules/OneFellSwoop.weir
rename to harper-core/src/linting/weir_rules/OneFellSwoop/FoulFowl.weir
diff --git a/harper-core/src/linting/weir_rules/OneFellSwoop/Preposition.weir b/harper-core/src/linting/weir_rules/OneFellSwoop/Preposition.weir
new file mode 100644
index 000000000..f099eeac4
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/OneFellSwoop/Preposition.weir
@@ -0,0 +1,8 @@
+expr main (with one fell swoop)
+
+let message "Use the correct preposition with this idiom for something happening suddenly."
+let description "Corrects the idiom `one fell swoop` used with the incorrect preposition `with` to the usual `in` or the traditional `at`."
+let kind "Usage"
+let becomes ["in one fell swoop", "at one fell swoop"]
+
+test "AI will never be able to \"destroy humanity\" with one fell swoop" "AI will never be able to \"destroy humanity\" in one fell swoop"