Skip to content

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

feat: every single of→every single one of (#3491)

Andrew Dunbar4c901e39161b
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index e0d1f0475..cb90d3b1d 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -4955,6 +4955,13 @@
"state": true,
"label": "Crave For"
}
+ },
+ {
+ "Bool": {
+ "name": "EverySingleOneOf",
+ "state": true,
+ "label": "Every Single One Of"
+ }
}
]
}
diff --git a/harper-core/src/linting/weir_rules/EverySingleOneOf.weir b/harper-core/src/linting/weir_rules/EverySingleOneOf.weir
new file mode 100644
index 000000000..6adbc1b52
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/EverySingleOneOf.weir
@@ -0,0 +1,10 @@
+expr main (every single of)
+
+let message "This phrase is missing the word `one`."
+let description "Detects missing `one` in the phrase 'every single one of'."
+let kind "Usage"
+let becomes "every single one of"
+
+test "There is at least 1 example coded in Java for every single of their 23 design patterns for Object-oriented programming." "There is at least 1 example coded in Java for every single one of their 23 design patterns for Object-oriented programming."
+test "Codex should be able to run commands on my current repo without asking me to approve every single of it" "Codex should be able to run commands on my current repo without asking me to approve every single one of it"
+test "Which is why it's very likely that you won't need every single of these plugins." "Which is why it's very likely that you won't need every single one of these plugins."
\ No newline at end of file