Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: one's self→oneself (#3769)
Andrew Dunbarefa59c33b291
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex b79146770..16488bdd6 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -5068,6 +5068,13 @@"label": "One Fell Swoop"}},+ {+ "Bool": {+ "name": "OnesSelf",+ "state": true,+ "label": "One's Self"+ }+ },{"Bool": {"name": "OnFirstGlance",diff --git a/harper-core/src/linting/weir_rules/OnesSelf.weir b/harper-core/src/linting/weir_rules/OnesSelf.weirnew file mode 100644index 000000000..b72b5cf71--- /dev/null+++ b/harper-core/src/linting/weir_rules/OnesSelf.weir@@ -0,0 +1,9 @@+expr main (one's self)++let message "If you mean the reflexive pronoun for a generic or unspecified person, use `oneself`. Ignore this if you 're referring to an individual's distinct identity or ego."+let description "Corrects the generic reflexive pronoun `one's self` to `oneself`."+let kind "Usage"+let becomes "oneself"++test "Send via direct message: enable sending a skeet to one's self" "Send via direct message: enable sending a skeet to oneself"+test "There is a tendency in language design to assume that one's users won't be as smart as one's self and thus one tends to dumb things down." "There is a tendency in language design to assume that one's users won't be as smart as oneself and thus one tends to dumb things down."\ No newline at end of file