Skip to content

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

feat: fond on→found on/fond of (#3251)

Andrew Dunbara20b50c0b7ba
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 2d5fc7a09..96edb3e1b 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5178,6 +5178,13 @@
"state": true,
"label": "Whereas"
}
+ },
+ {
+ "Bool": {
+ "name": "FondOn",
+ "state": true,
+ "label": "Fond On"
+ }
}
]
}
diff --git a/harper-core/src/linting/weir_rules/FondOn.weir b/harper-core/src/linting/weir_rules/FondOn.weir
new file mode 100644
index 000000000..7351edf05
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/FondOn.weir
@@ -0,0 +1,9 @@
+expr main (fond on)
+
+let message "Use `found on` or `fond of` instead of `fond on`."
+let description "Flags `fond on` and suggests `found on` or `fond of`."
+let kind "Miscellaneous"
+let becomes ["found on", "fond of"]
+
+test "The only answer I fond on the question seems to imply that the 10s value was never discussed." "The only answer I found on the question seems to imply that the 10s value was never discussed."
+test "I'm not necessarily too fond on such a tool but I can see how this would be hugely useful in practice..." "I'm not necessarily too fond of such a tool but I can see how this would be hugely useful in practice..."