Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: inspired from→inspired by (#3427)
Andrew Dunbarb0c7dc99c4ba
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 1902cdaeb..2e9c403ed 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -5012,6 +5012,13 @@"label": "Crave For"}},+ {+ "Bool": {+ "name": "InspiredBy",+ "state": true,+ "label": "Inspired By"+ }+ },{"Bool": {"name": "ByTheBook",diff --git a/harper-core/src/linting/weir_rules/InspiredBy.weir b/harper-core/src/linting/weir_rules/InspiredBy.weirnew file mode 100644index 000000000..c6eed562a--- /dev/null+++ b/harper-core/src/linting/weir_rules/InspiredBy.weir@@ -0,0 +1,10 @@+expr main (inspired from)++let message "Use `inspired by` instead of `inspired from` when citing a source of inspiration."+let description "Corrects `inspired from` to `inspired by`, as `by` is the standard preposition for indicating the source of inspiration."+let kind "Usage"+let becomes "inspired by"+# let strategy++test "The name \"Forge\" is inspired from \"Minecraft Forge\"." "The name \"Forge\" is inspired by \"Minecraft Forge\"."+test "Next Position Cursor Prediction (Inspired from Cursor Obvioslly...)" "Next Position Cursor Prediction (Inspired by Cursor Obvioslly...)"