Skip to content

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

feat: the all the → all the (#4702)

Andrew Dunbar3f5ff3e72741
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 167b2dc8b..7cd0a6193 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -3424,6 +3424,13 @@
"label": "Starving"
}
},
+ {
+ "Bool": {
+ "name": "TheAllThe",
+ "state": true,
+ "label": "The All The"
+ }
+ },
{
"Bool": {
"name": "Towards",
diff --git a/harper-core/src/linting/weir_rules/TheAllThe.weir b/harper-core/src/linting/weir_rules/TheAllThe.weir
new file mode 100644
index 000000000..aa9bcf770
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/TheAllThe.weir
@@ -0,0 +1,10 @@
+expr main (the all the)
+
+let message "Remove redundant `the`"
+let description "Fixes redundant double `the` in `the all the`"
+let kind "Redundancy"
+let becomes "all the"
+
+test "I would wager that the all the customization layers (like \"One UI\") that OEMs put on top of AOSP is the component" "I would wager that all the customization layers (like \"One UI\") that OEMs put on top of AOSP is the component"
+test "This is the all the code that was used in my thesis" "This is all the code that was used in my thesis"
+test "test IG that tests out the all the features of IGs" "test IG that tests out all the features of IGs"