Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: at the first place→in the first place (#4215)
Andrew Dunbar43745e24a6af
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 556d6a00d..0067c9ed6 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -4977,6 +4977,13 @@"label": "Interested In"}},+ {+ "Bool": {+ "name": "InTheFirstPlace",+ "state": true,+ "label": "In the First Place"+ }+ },{"Bool": {"name": "InTheGrandSchemeOfThings",diff --git a/harper-core/src/linting/weir_rules/InTheFirstPlace.weir b/harper-core/src/linting/weir_rules/InTheFirstPlace.weirnew file mode 100644index 000000000..5486e4359--- /dev/null+++ b/harper-core/src/linting/weir_rules/InTheFirstPlace.weir@@ -0,0 +1,14 @@+expr main (at the first place)++let message "For referring back to the root cause or primary argument, use `in the first place`."+let description "Corrects `at the first place` to `in the first place`."+let kind "WordChoice"+let becomes "in the first place"++test "why do you even use Cursor at the first place?" "why do you even use Cursor in the first place?"+test "So I want to ask; why does this work at the first place?" "So I want to ask; why does this work in the first place?"+test "Why even rust at the first place?" "Why even rust in the first place?"++# Known false positives++# If the cursor is at the first place of a new line, when one input non-letter symbols, it should not affect the other functions