Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: in do course→in due course (#3693)
Andrew Dunbar0464044eb268
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 445a3460a..35d12c23e 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -5200,6 +5200,13 @@"state": true,"label": "Run Into Problems / Trouble"}+ },+ {+ "Bool": {+ "name": "InDueCourse",+ "state": true,+ "label": "In Due Course"+ }}]}diff --git a/harper-core/src/linting/weir_rules/InDueCourse.weir b/harper-core/src/linting/weir_rules/InDueCourse.weirnew file mode 100644index 000000000..32b1910ec--- /dev/null+++ b/harper-core/src/linting/weir_rules/InDueCourse.weir@@ -0,0 +1,9 @@+expr main (in do course)++let message "Use `in due course` instead of `in do course`."+let description "Corrects `do` to `due` in the eggcorn `in do course`."+let kind "Eggcorn"+let becomes "in due course"++test "We will menage everything in do course of time." "We will menage everything in due course of time."+test "What might not come in do course of the game if you don't play it smart is the uber loot." "What might not come in due course of the game if you don't play it smart is the uber loot."\ No newline at end of file