Skip to content

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

chore: add "front of a" to false positives

hippietrail273abad532b9
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rs
index 37fe2cfda..2ff82a562 100644
--- a/harper-core/src/linting/adjective_of_a.rs
+++ b/harper-core/src/linting/adjective_of_a.rs
@@ -24,6 +24,7 @@ impl Linter for AdjectiveOfA {
['m', 'u', 'c', 'h'] | ['M', 'u', 'c', 'h'] => true,
// The word is used more as a noun in this context.
// (using .kind.is_likely_homograph() here is too strict)
+ ['f', 'r', 'o', 'n', 't'] | ['F', 'r', 'o', 'n', 't'] => true,
['k', 'i', 'n', 'd'] | ['K', 'i', 'n', 'd'] => true,
['m', 'e', 'a', 'n', 'i', 'n', 'g'] | ['M', 'e', 'a', 'n', 'i', 'n', 'g'] => true,
['p', 'a', 'r', 't'] | ['P', 'a', 'r', 't'] => true,