Skip to content

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

feat: fussy logic → fuzzy logic (#4647)

Andrew Dunbar6a2d6d70727b
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index e251d2d27..e6d057ec0 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5011,6 +5011,13 @@
"label": "Friend Of Me"
}
},
+ {
+ "Bool": {
+ "name": "FuzzyLogic",
+ "state": true,
+ "label": "Fuzzy Logic"
+ }
+ },
{
"Bool": {
"name": "GildedAge",
diff --git a/harper-core/src/linting/weir_rules/FuzzyLogic.weir b/harper-core/src/linting/weir_rules/FuzzyLogic.weir
new file mode 100644
index 000000000..f73a9efbf
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/FuzzyLogic.weir
@@ -0,0 +1,9 @@
+expr main (fussy logic)
+
+let message "Unless this is intentional humorous wordplay, use 'fuzzy logic' instead of 'fussy logic'."
+let description "Corrects `fussy logic` to `fuzzy logic`."
+let kind "Eggcorn"
+let becomes "fuzzy logic"
+
+test "Implementation of Motor Speed Control by Using Fussy Logic." "Implementation of Motor Speed Control by Using Fuzzy Logic."
+test "A ROS Tutorial to control a virtual V-REP Hexacopter using Fussy logic" "A ROS Tutorial to control a virtual V-REP Hexacopter using Fuzzy logic"