Skip to content

fix: resolve #3327 — Quite is flagged incorrectly as a typo#3435

Open
chinhkrb113 wants to merge 2 commits into
Automattic:masterfrom
chinhkrb113:improve/quality/fix-false-positive-where-quite-meaning-r
Open

fix: resolve #3327 — Quite is flagged incorrectly as a typo#3435
chinhkrb113 wants to merge 2 commits into
Automattic:masterfrom
chinhkrb113:improve/quality/fix-false-positive-where-quite-meaning-r

Conversation

@chinhkrb113
Copy link
Copy Markdown

Summary

The lint rule that flags "quite" as a potential typo for "quiet" produces false positives in common, correct usage like "quite well," "quite good," "quite a lot," etc. The word "quite" is a standard English adverb meaning "rather" or "to a degree" and is extremely common. The current rule appears to flag all uses of "quite" without considering context, leading to many false positives. The rule should either be removed entirely or significantly narrowed to only flag "quite" in contexts where "quiet" is clearly intended (e.g., "quite room" instead of "quiet room" — where "quite" precedes a noun it cannot modify as an adverb)

Fixes #3327

Changes

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

Why

harper-core/src/linting/quite_quiet.rs: The lint rule that flags "quite" as a potential typo for "quiet" produces false positives in common, correct usage like "quite well," "quite good," "quite a lot," etc. The word "quite" is a standard English adverb meaning "rather" or "to a degree" and is extremely common. The current rule appears to flag all uses of "quite" without considering context, leading to many false positives. The rule should either be removed entirely or significantly narrowed to only flag "quite" in contexts where "quiet" is clearly intended (e.g., "quite room" instead of "quiet room" — where "quite" precedes a noun it cannot modify as an adverb).

Fixes Automattic#3327

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
Fixes Automattic#3327

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
@hippietrail
Copy link
Copy Markdown
Collaborator

It looks like this PR just adds some tests and does not resolve #3327 as claimed.

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.

Quite is flagged incorrectly as a typo

2 participants