Skip to content

fix: resolve #3361 — Incorrect grammar analysis on apostrophe possessive name#3432

Open
chinhkrb113 wants to merge 1 commit into
Automattic:masterfrom
chinhkrb113:improve/quality/fix-repeated-word-lint-false-positive-on
Open

fix: resolve #3361 — Incorrect grammar analysis on apostrophe possessive name#3432
chinhkrb113 wants to merge 1 commit into
Automattic:masterfrom
chinhkrb113:improve/quality/fix-repeated-word-lint-false-positive-on

Conversation

@chinhkrb113
Copy link
Copy Markdown

Summary

Combined multi-file contribution:

Changes

  • harper-core/src/linting/repeated_words.rs

Why

harper-core/src/linting/repeated_words.rs: The "repeated be verb redundancy" or "repeated words" lint is incorrectly flagging Kamen's as a repeated word when it appears after she's in the same sentence. The issue is that the lint is treating the 's in Kamen's (possessive) as equivalent to the 's in she's (contraction of "is"), and flagging it as a repeated word/verb. The lint needs to distinguish between possessive 's and contracted 's (is/has), or at minimum not flag words that include a possessive 's attached to a proper noun/unknown word as repeated instances of a prior contraction.

…he possessive name

Fixes Automattic#3361

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant