Skip to content

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

feat: hazzle→hassle (#3690)

Andrew Dunbarca5a95a89cb7
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 3bb2cb3b2..445a3460a 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -2790,6 +2790,13 @@
"state": true,
"label": "The The To That The"
}
+ },
+ {
+ "Bool": {
+ "name": "Hazzle",
+ "state": true,
+ "label": "Hazzle"
+ }
}
]
}
diff --git a/harper-core/src/linting/weir_rules/Hazzle/Hazzle.weir b/harper-core/src/linting/weir_rules/Hazzle/Hazzle.weir
new file mode 100644
index 000000000..62c150c56
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/Hazzle/Hazzle.weir
@@ -0,0 +1,10 @@
+
+expr main hazzle
+
+let message "Did you mean `hassle`?"
+let description "Corrects `hazzle` to `hassle`."
+let kind "Spelling"
+let becomes "hassle"
+
+test "Also, it is a hazzle that these 3 pics remain in the burst folder" "Also, it is a hassle that these 3 pics remain in the burst folder"
+test "A bare minimum set of tools to get your Transformice script started hazzle-free." "A bare minimum set of tools to get your Transformice script started hassle-free."
diff --git a/harper-core/src/linting/weir_rules/Hazzle/Hazzled.weir b/harper-core/src/linting/weir_rules/Hazzle/Hazzled.weir
new file mode 100644
index 000000000..a5c88c1cc
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/Hazzle/Hazzled.weir
@@ -0,0 +1,9 @@
+expr main hazzled
+
+let message "Did you mean `hassled`?"
+let description "Corrects `hazzled` to `hassled`."
+let kind "Spelling"
+let becomes "hassled"
+
+test "I've hazzled with syncthing before and i'd use that solution on my portable folders too." "I've hassled with syncthing before and i'd use that solution on my portable folders too."
+test "This lift and shift approach ensures, the developers and the end user community do not get hazzled by new ways of doing things." "This lift and shift approach ensures, the developers and the end user community do not get hassled by new ways of doing things."
diff --git a/harper-core/src/linting/weir_rules/Hazzle/Hazzles.weir b/harper-core/src/linting/weir_rules/Hazzle/Hazzles.weir
new file mode 100644
index 000000000..35b20d509
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/Hazzle/Hazzles.weir
@@ -0,0 +1,9 @@
+expr main hazzles
+
+let message "Did you mean `hassles`?"
+let description "Corrects `hazzles` to `hassles`."
+let kind "Spelling"
+let becomes "hassles"
+
+test "No more hazzles with configuration files." "No more hassles with configuration files."
+test "For your logistics and delivery hazzles ." "For your logistics and delivery hassles ."
diff --git a/harper-core/src/linting/weir_rules/Hazzle/Hazzling.weir b/harper-core/src/linting/weir_rules/Hazzle/Hazzling.weir
new file mode 100644
index 000000000..d3d2b2943
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/Hazzle/Hazzling.weir
@@ -0,0 +1,9 @@
+expr main hazzling
+
+let message "Did you mean `hassling`?"
+let description "Corrects `hazzling` to `hassling`."
+let kind "Spelling"
+let becomes "hassling"
+
+test "need to be exclusive from states so there is no hazzling with communtativity of the xor operator of hashing functions." "need to be exclusive from states so there is no hassling with communtativity of the xor operator of hashing functions."
+test "Due to some server hazzling I have to forward this stuff to my new server" "Due to some server hassling I have to forward this stuff to my new server"