Skip to content

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

chore: "head of a" false positive + test

hippietrail34bb1ed90970
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rs
index 363297161..4afcc1434 100644
--- a/harper-core/src/linting/adjective_of_a.rs
+++ b/harper-core/src/linting/adjective_of_a.rs
@@ -16,6 +16,7 @@ const FALSE_POSITIVES: &[&str] = &[
// (using .kind.is_likely_homograph() here is too strict)
"bottom",
"front",
+ "head",
"kind",
"left",
"meaning",
@@ -269,4 +270,13 @@ mod tests {
fn dont_flag_full_uppercase() {
assert_lint_count("Full of a bunch varnish like we get.", AdjectiveOfA, 0);
}
+
+ #[test]
+ fn dont_flag_head() {
+ assert_lint_count(
+ "You need to get out if you're the head of an education department and you're not using AI",
+ AdjectiveOfA,
+ 0,
+ );
+ }
}