Skip to content

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

feat: finish touches→finishing touches (#4081)

Andrew Dunbar594f6e689184
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index f60a2b95b..0d377e02b 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -4564,6 +4564,13 @@
"label": "Feel Fell"
}
},
+ {
+ "Bool": {
+ "name": "FinishingTouches",
+ "state": true,
+ "label": "Finishing Touches"
+ }
+ },
{
"Bool": {
"name": "FirstAidKit",
diff --git a/harper-core/src/linting/weir_rules/FinishingTouches.weir b/harper-core/src/linting/weir_rules/FinishingTouches.weir
new file mode 100644
index 000000000..4fdd88a48
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/FinishingTouches.weir
@@ -0,0 +1,11 @@
+expr main (finish touches)
+
+let message "Use `finishing touches` instead of `finish touches`."
+let description "Corrects `finish touches` to `finishing touches`."
+let kind "Usage"
+let becomes "finishing touches"
+
+# The singular 'finishing touch' is less common and the instances of 'finish touch' are harder to classify as errors or not.
+
+test "I do not really care for user input or any other \"finish touches,\" just want to make the code more efficient" "I do not really care for user input or any other \"finishing touches,\" just want to make the code more efficient"
+test "In the meantime, the customer got talked into using Oracle as we were getting the finish touches for delivery." "In the meantime, the customer got talked into using Oracle as we were getting the finishing touches for delivery."