Skip to content

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

feat: case and point→case in point

hippietrailfed2c5204847
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index e8390bba0..07a7ca35b 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -1038,6 +1038,12 @@ pub fn lint_group() -> LintGroup {
"`Has gone` is the correct form.",
"Corrects `has went` to `has gone`."
),
+ "CaseInPoint" => (
+ ["case and point"],
+ ["case in point"],
+ "`Case in point` is the correct form of the phrase.",
+ "Corrects `case and point` to `case in point`."
+ ),
});
group.set_all_rules_to(Some(true));
@@ -2104,4 +2110,13 @@ mod tests {
"I would like to report that the package request which you are loading has gone into maintenance mode.",
);
}
+
+ #[test]
+ fn correct_case_and_point_spaced() {
+ assert_suggestion_result(
+ "They are just not as high of a priority as other tasks that user's are requesting for, a case and point is I have never ran into this issue.",
+ lint_group(),
+ "They are just not as high of a priority as other tasks that user's are requesting for, a case in point is I have never ran into this issue.",
+ );
+ }
}