Skip to content

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

feat: slippy slope → slippery slope (#4338)

Andrew Dunbar6b37000c26fb
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 242dc6924..acc63f659 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -4087,6 +4087,13 @@
"label": "Accuse of"
}
},
+ {
+ "Bool": {
+ "name": "SlipperySlope",
+ "state": true,
+ "label": "Slippery Slope"
+ }
+ },
{
"Bool": {
"name": "AheadAnd",
diff --git a/harper-core/src/linting/weir_rules/SlipperySlope.weir b/harper-core/src/linting/weir_rules/SlipperySlope.weir
new file mode 100644
index 000000000..974bef0e1
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/SlipperySlope.weir
@@ -0,0 +1,9 @@
+expr main (slippy slope)
+
+let message "The correct idiom is `slippery slope`."
+let description "Corrects `slippy slope` to `slippery slope`."
+let kind "Usage"
+let becomes "slippery slope"
+
+test "Using the same trio loop with different tests is a very slippy slope" "Using the same trio loop with different tests is a very slippery slope"
+test "Without the ability to verify it, except with even more AI maybe, you're starting on a slippy slope to slop." "Without the ability to verify it, except with even more AI maybe, you're starting on a slippery slope to slop."