Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: in ideal world → in an ideal world (#4325)
Andrew Dunbarade0d07ea640
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 38060961d..242dc6924 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -4948,6 +4948,13 @@"label": "In A Hurry"}},+ {+ "Bool": {+ "name": "InAnIdealWorld",+ "state": true,+ "label": "In an Ideal World"+ }+ },{"Bool": {"name": "IncidentReport",diff --git a/harper-core/src/linting/weir_rules/InAnIdealWorld.weir b/harper-core/src/linting/weir_rules/InAnIdealWorld.weirnew file mode 100644index 000000000..d2b784627--- /dev/null+++ b/harper-core/src/linting/weir_rules/InAnIdealWorld.weir@@ -0,0 +1,8 @@+expr main (in ideal world)++let message "Use `in an ideal world`. The indefinite article `an` is required."+let description "Corrects `in ideal world` to `in an ideal world`."+let kind "Usage"+let becomes "in an ideal world"++test "In ideal world the society would make it an obligation for general computers to remain free (as in freedom) and accessible." "In an ideal world the society would make it an obligation for general computers to remain free (as in freedom) and accessible."