Skip to content

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

fix: include the full set of personal pronouns and possessives

hippietrail8d6d34bbf7f7
diff --git a/harper-core/src/linting/multiple_sequential_pronouns.rs b/harper-core/src/linting/multiple_sequential_pronouns.rs
index 0c24809d7..51cb9cbb9 100644
--- a/harper-core/src/linting/multiple_sequential_pronouns.rs
+++ b/harper-core/src/linting/multiple_sequential_pronouns.rs
@@ -12,8 +12,17 @@ pub struct MultipleSequentialPronouns {
impl MultipleSequentialPronouns {
fn new() -> Self {
+ // Some words occur in multiple positions in the paradigm
+ // but this is a set, so it doesn't matter and is much clearer
let pronouns = Lrc::new(WordSet::new(&[
- "me", "my", "I", "we", "you", "he", "him", "her", "she", "it", "they",
+ "I", "you", "he", "she", "it", // subject case, singular
+ "me", "you", "him", "her", "it", // object case, singular
+ "we", "you", "they", // subject case, plural
+ "us", "you", "them", // object case, plural
+ "mine", "yours", "his", "hers", // possessive pronouns, singular
+ "ours", "yours", "theirs", // possessive pronouns, plural
+ "my", "your", "his", "her", // possessive adjectives, singular
+ "our", "your", "their", // possessive adjectives, plural
]));
Self {