Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: incidence report→incident report (#3593)

Andrew Dunbarb321d7941d8f
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index d4eb9d05d..1ca1b0c69 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5004,6 +5004,13 @@
"state": true,
"label": "Pay For Price"
}
+ },
+ {
+ "Bool": {
+ "name": "IncidentReport",
+ "state": true,
+ "label": "Incident Report"
+ }
}
]
}
diff --git a/harper-core/src/linting/weir_rules/IncidentReport/Plural.weir b/harper-core/src/linting/weir_rules/IncidentReport/Plural.weir
new file mode 100644
index 000000000..fa15273b4
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/IncidentReport/Plural.weir
@@ -0,0 +1,8 @@
+expr main incidence reports
+
+let message "Did you mean `incident reports`?"
+let description "Corrects `incidence reports` to `incident reports`."
+let kind "WordChoice"
+let becomes "incident reports"
+
+test "We calibrate this pool of models to incidence reports using Hamiltonian Monte Carlo." "We calibrate this pool of models to incident reports using Hamiltonian Monte Carlo."
diff --git a/harper-core/src/linting/weir_rules/IncidentReport/Singular.weir b/harper-core/src/linting/weir_rules/IncidentReport/Singular.weir
new file mode 100644
index 000000000..0eba35646
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/IncidentReport/Singular.weir
@@ -0,0 +1,8 @@
+expr main incidence report
+
+let message "Did you mean `incident report`?"
+let description "Corrects `incidence report` to `incident report`."
+let kind "WordChoice"
+let becomes "incident report"
+
+test "Create rough draft of incidence report form." "Create rough draft of incident report form."