Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(core): ignore "you" followed by an adverb
Elijah Potter3ad79a44b591
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 992b23715..06ca69d24 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -26670,7 +26670,7 @@ herd/14MDRZGSherder/1Mherdsman/1Mherdsmen/1-here/15M+here/15Mjhereabout/Shereafter/15SMhereby/diff --git a/harper-core/src/linting/possessive_your.rs b/harper-core/src/linting/possessive_your.rsindex 27b17e7b5..a9d6e2cd7 100644--- a/harper-core/src/linting/possessive_your.rs+++ b/harper-core/src/linting/possessive_your.rs@@ -12,7 +12,9 @@ pub struct PossessiveYour {impl Default for PossessiveYour {fn default() -> Self {let pattern = SequencePattern::aco("you").then_whitespace().then(Box::new(- |tok: &Token, _source: &[char]| tok.kind.is_noun() && !tok.kind.is_verb(),+ |tok: &Token, _source: &[char]| {+ tok.kind.is_noun() && !tok.kind.is_verb() && !tok.kind.is_adverb()+ },));Self {