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

Create a vale rule for ambiguous pronouns #881

Open
aireilly opened this issue Sep 10, 2024 · 1 comment
Open

Create a vale rule for ambiguous pronouns #881

aireilly opened this issue Sep 10, 2024 · 1 comment
Labels

Comments

@aireilly
Copy link
Member

aireilly commented Sep 10, 2024

https://www.inpressionedit.com/2016/11/12/fix-ambiguous-pronouns/

@aireilly
Copy link
Member Author

aireilly commented Sep 11, 2024

I don't think this is possible with Vale, especially when the ambiguous pronoun might require the context of the previous sentence(s).

A rudimentary attempt at linting ambiguous pronouns in the sentence scope is here:
https://studio.vale.sh/s/a1cba1f1cef1ff38e95f309a0895ac45

---
extends: sequence
message: "Avoid ambiguous pronouns"
level: suggestion
ignorecase: true
tokens:
  - tag: NN|NNP|NNPS|NNS
    skip: 8
    negate: true
  - tag: NN|NNP|NNPS|NNS
    skip: 8
    negate: true
  - tag: PRP|PRP$
    pattern: he|she|its?|they|his|her|their

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant