sindresorhus / awesome-lint

Linter for Awesome lists
MIT License
600 stars 56 forks source link

List Item description should allow possessive form as first word #148

Closed janpeuker closed 1 year ago

janpeuker commented 2 years ago

Observed:

When using the possessive form in the first word of an item's description (e.g. "GitHub's", pun intended), the Linter complains like this: ✖ 428:68 List item description must start with valid casing

Expected:

This should be considered valid casing. Looking at Wikipedia's style guide there is no explicit rule for this but it appears generally the "'s" extension is not considered part of the word itself (e.g. links generally do not include the "'s").

Thus, I would like to propose to add word tokenization on the apostrophe (U+0027). Looking at the code, I believe this behaviour might sit in the tokenization logic. I will send a PR to propose a fix - feel free to close tho, I just think it makes the discussion easier.