Do not allow for a word to start or end with punctuation symbols #3588
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The inspired for me to look use case
And then I found the issue this
Although may be I am missing the use-cases/problems @DimitriPapadopoulos and @mdeweerd discussed back then
Edits:
After I pushed, I realized that we have a use case where we are not covering
``LaTeX''
way to quote. So were and keep missing those. Do you think I should add regex for them too?some gory details on me discovering were' and other "typos" in dictionaries
ok -- tests fail due to the typo:
and apparently it is not a single one like that left:
but some of those IMHO make no sense to list
'
if correction is also with'
which is AFAIK is not a part of the word, i.e. I think following should be simply removed (replaced with ones with'
):First I wondered if that is the case worth striving for fixing: since were is a legit word, it could have also been forgotten
'
somewhere long before, e.g. in awhich would be programming language gotcha, not a typo.
FWIW
were'
was added originally infiles'
) at some point existed but then were removed as well e.g. in 8804b93In leftover cases it boils down to
'
is a part of the word, and thus could be present in the typo in alternative location"(I would still argue to exclude
were'
)..