Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Correct "a part" flagged, wrong "apart" suggested #750

Open
hippietrail opened this issue Feb 23, 2025 · 0 comments
Open

Bug: Correct "a part" flagged, wrong "apart" suggested #750

hippietrail opened this issue Feb 23, 2025 · 0 comments
Labels
bug Something isn't working harper-core linting

Comments

@hippietrail
Copy link
Contributor

Description

Certain instance of the phrase "a part" gets flagged to change into "apart".

spinning its wheels and here's a part where refers to [sic]

Harper is generally overzealous in replacing arbitrary pairs of words with unrelated single words that happen to be exact concatenations of the word pair.

In this case it's worse because this is already a mistake people made and I've already filed a feature request to flag it. And because the terms are opposites in a sense: two things can't be very far apart if one of the things is a part of the other.

It's also wrong to call the results a "compound noun". This should only happen when both parts are nouns, or at a bare minimum when the final part is a noun. In this case it's not even a compound of "a" and "part", it's purely coincidence. And "apart" is not a noun at all. It's usually an adverb and secondarily an adjective.

Resources

If the problem is not obvious, some online resources clarifying the relevant grammar point can be useful.

Screenshots

Image
@hippietrail hippietrail added bug Something isn't working harper-core linting labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working harper-core linting
Projects
None yet
Development

No branches or pull requests

1 participant