Skip to content

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

feat: the different(s) between→the difference between (#2951)

Andrew Dunbar8f85ecd14e9c
diff --git a/harper-core/src/linting/weir_rules/TheDifferenceBetween.weir b/harper-core/src/linting/weir_rules/TheDifferenceBetween.weir
new file mode 100644
index 000000000..6c8f5cf3f
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/TheDifferenceBetween.weir
@@ -0,0 +1,9 @@
+expr main [(the different between), (the differents between)]
+
+let message "The correct word is `difference`, not `different` or `differents`."
+let description "Corrects `the different(s) between to `the difference between`."
+let kind "Usage"
+let becomes "the difference between"
+
+test "What is the different between the two msi files of the latest version?" "What is the difference between the two msi files of the latest version?"
+test "what's the differents between \"await page.$(selector)\" and \"page.$(selector)\" ?" "what's the difference between \"await page.$(selector)\" and \"page.$(selector)\" ?"
\ No newline at end of file