Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: off coarse→of course (#2878)
Andrew Dunbarefe0f56ea6dc
diff --git a/harper-core/src/linting/weir_rules/OfCourse.weir b/harper-core/src/linting/weir_rules/OfCourse.weirindex a0018d01a..45be22413 100644--- a/harper-core/src/linting/weir_rules/OfCourse.weir+++ b/harper-core/src/linting/weir_rules/OfCourse.weir@@ -1,10 +1,11 @@-expr main [(off course), (o course), (ofcourse)]+expr main [(off course), (o course), (ofcourse), (off coarse)]let message "Did you mean `of course`?"-let description "Detects the common mistake `off course` and suggests the correct form `of course`."+let description "Detects common mistaken forms of `of course`."let kind "Eggcorn"let becomes "of course"test "Yes, off course we should do that." "Yes, of course we should do that."test "Yes, o course we should do that." "Yes, of course we should do that."test "Ofcourse, I like other languages.. uzulla has 183 repositories available." "Of course, I like other languages.. uzulla has 183 repositories available."+test "Off coarse, the web service will still be operational." "Of course, the web service will still be operational."\ No newline at end of file