Skip to content

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

feat(core): `chalkboard` is a closed compound (#2858)

Elijah Potter234e08fba954
diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rs
index 5eb148e0f..77a104c33 100644
--- a/harper-core/src/linting/closed_compounds.rs
+++ b/harper-core/src/linting/closed_compounds.rs
@@ -26,6 +26,7 @@ pub fn lint_group() -> LintGroup {
"Anywhere" => ("any where", "anywhere"),
"Backplane" => ("back plane", "backplane"),
"Bypass" => ("by pass", "bypass"),
+ "Chalkboard" => ("chalk board", "chalkboard"),
"Deadlift" => ("dead lift", "deadlift"),
"Desktop" => ("desk top", "desktop"),
"Devops" => ("dev ops", "devops"),
@@ -246,6 +247,13 @@ mod tests {
assert_suggestion_result(test_sentence, lint_group(), expected);
}
+ #[test]
+ fn chalk_board() {
+ let test_sentence = "The teacher wrote the equation on the chalk board.";
+ let expected = "The teacher wrote the equation on the chalkboard.";
+ assert_suggestion_result(test_sentence, lint_group(), expected);
+ }
+
#[test]
fn key_stoke() {
let test_sentence = "Use this key stoke to open search.";