Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: yea/yeh →yeah (#2604)
Andrew Dunbarfa3518ee8269
diff --git a/harper-core/src/linting/weir_rules/YeaToYeah.weir b/harper-core/src/linting/weir_rules/YeaToYeah.weirnew file mode 100644index 000000000..cb9674c49--- /dev/null+++ b/harper-core/src/linting/weir_rules/YeaToYeah.weir@@ -0,0 +1,8 @@+expr main (yea)++let message "If you mean the informal word for `yes` and not the biblical or legalistic `yea`, the standard spelling is `yeah`."+let description "Corrects `yea` to `yeah`."+let kind "Spelling"+let becomes "yeah"++test "The very core basics are essentially the same because yea - it's just a web browser." "The very core basics are essentially the same because yeah - it's just a web browser."\ No newline at end of filediff --git a/harper-core/src/linting/weir_rules/YehToYeah.weir b/harper-core/src/linting/weir_rules/YehToYeah.weirnew file mode 100644index 000000000..b4fe776c2--- /dev/null+++ b/harper-core/src/linting/weir_rules/YehToYeah.weir@@ -0,0 +1,8 @@+expr main (yeh)++let message "If you mean the informal word for `yes`, the standard spelling is `yeah`."+let description "Corrects `yeh` to `yeah`."+let kind "Spelling"+let becomes "yeah"++test "But yeh, it seems I'm the only one that feels that way" "But yeah, it seems I'm the only one that feels that way"\ No newline at end of filediff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.ymlindex 9f950d3e2..95f6be182 100644--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml@@ -5483,6 +5483,15 @@ Suggest:+Lint: Spelling (31 priority)+Message: |+ 4070 | the window, followed by intermittent cries of “Yea—ea—ea!” and finally by a+ | ^~~ If you mean the informal word for `yes` and not the biblical or legalistic `yea`, the standard spelling is `yeah`.+Suggest:+ - Replace with: “Yeah”+++Lint: Spelling (63 priority)Message: |4073 | “We're getting old,” said Daisy. “lf we were young we’d rise and dance.”