Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: not along after/afterward/afterwards→not long ... (#3762)
Andrew Dunbar84661fd6ed83
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 752e1eed2..8349ecd2d 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -2819,6 +2819,13 @@"label": "Hazzle"}},+ {+ "Bool": {+ "name": "NotLongAfter",+ "state": true,+ "label": "Not Long After"+ }+ },{"Bool": {"name": "MayOfPronoun",diff --git a/harper-core/src/linting/weir_rules/NotLongAfter/After.weir b/harper-core/src/linting/weir_rules/NotLongAfter/After.weirnew file mode 100644index 000000000..ec024f3b9--- /dev/null+++ b/harper-core/src/linting/weir_rules/NotLongAfter/After.weir@@ -0,0 +1,9 @@+expr main (not along after)++let message "Did you mean `not long after`?"+let description "Corrects `not along after` to `not long after`."+let kind "Typo"+let becomes "not long after"++test "Not along after the incident, one Islamic militant group called the strike a \"jihadi operation\"" "Not long after the incident, one Islamic militant group called the strike a \"jihadi operation\""+test "Not along after the final vote, a Wikipedia admin deleted the article." "Not long after the final vote, a Wikipedia admin deleted the article."diff --git a/harper-core/src/linting/weir_rules/NotLongAfter/Afterward.weir b/harper-core/src/linting/weir_rules/NotLongAfter/Afterward.weirnew file mode 100644index 000000000..0b3bf08ff--- /dev/null+++ b/harper-core/src/linting/weir_rules/NotLongAfter/Afterward.weir@@ -0,0 +1,9 @@+expr main (not along afterward)++let message "Did you mean `not long afterward`?"+let description "Corrects `not along afterward` to `not long afterward`."+let kind "Typo"+let becomes "not long afterward"++test "Camp Bucca closed not along afterward." "Camp Bucca closed not long afterward."+test "Not along afterward, the cat was successfully rescued by an expressway traffic officer" "Not long afterward, the cat was successfully rescued by an expressway traffic officer"diff --git a/harper-core/src/linting/weir_rules/NotLongAfter/Afterwards.weir b/harper-core/src/linting/weir_rules/NotLongAfter/Afterwards.weirnew file mode 100644index 000000000..d843d31c6--- /dev/null+++ b/harper-core/src/linting/weir_rules/NotLongAfter/Afterwards.weir@@ -0,0 +1,9 @@+expr main (not along afterwards)++let message "Did you mean `not long afterwards`?"+let description "Corrects `not along afterwards` to `not long afterwards`."+let kind "Typo"+let becomes "not long afterwards"++test "Not along afterwards, the young Artemis began seeing news reports that his father had disappeared while traveling on his yacht." "Not long afterwards, the young Artemis began seeing news reports that his father had disappeared while traveling on his yacht."+test "a younger, \“modern\” couple with three children moved in a couple houses down, and not along afterwards began to build a patio." "a younger, \“modern\” couple with three children moved in a couple houses down, and not long afterwards began to build a patio."