Skip to content

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

fix(core): address #770

Elijah Potter0e8478e025e2
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index 4d31dc5a9..85c5c0884 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -28,7 +28,6 @@ pub fn lint_group() -> LintGroup {
"ThatChallenged" => ("that challenged", 1),
"NoLonger" => ("no longer", 1),
"NeedHelp" => ("need help", 1),
- "OfCourse" => ("of course", 1),
"AndTheLike" => ("and the like", 1),
"BadRap" => ("bad rap", 1),
"BatedBreath" => ("bated breath", 1),
@@ -265,6 +264,12 @@ pub fn lint_group() -> LintGroup {
"Did you mean 'by accident'?",
"Incorrect preposition: 'by accident' is the idiomatic expression."
),
+ "OfCourse" => (
+ "off course",
+ ["of course"],
+ "Did you mean 'of course'?",
+ "Detects the non‐idiomatic phrase 'off course' and suggests the correct form 'of course'."
+ ),
});
group.add("FastPaste", Box::new(MapPhraseLinter::new(