Skip to content

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.dict
index 992b23715..06ca69d24 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -26670,7 +26670,7 @@ herd/14MDRZGS
herder/1M
herdsman/1M
herdsmen/1
-here/15M
+here/15Mj
hereabout/S
hereafter/15SM
hereby/
diff --git a/harper-core/src/linting/possessive_your.rs b/harper-core/src/linting/possessive_your.rs
index 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 {