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
Exclamation point warning on all caps text #540
Comments
I'm able to reproduce this in 0.6.1 with Python 2.7. It looks like a bug, either an incorrect error message or incorrect logic in the check. |
Here's the relevant code:
You're right, this is incorrect — it's checking for > 2 sequential all-caps words, not > 1 sequential exclamation points. Good catch. |
(The fix is to alter the regex to match 2+ sequential exclamation points.) |
Thank you @CatherineH for letting us know! Would you pull @decagon's fix and test it to make sure it now works appropriately on your build? Also, @CatherineH, would you be willing to write a test for this? |
I am using proselint 0.6.0 with python 3.5. I have the following sample text:
This produces the proselint warning:
It seems like leonard.exclamation.multiple is catching multiple capitalized words rather than exclamation points, so it is confusing that it warns me about the latter.
The text was updated successfully, but these errors were encountered: