sindresorhus / slugify

Slugify a string
MIT License
2.56k stars 81 forks source link

Decamelization should ignore plurals of acronyms #60

Closed darsain closed 2 years ago

darsain commented 3 years ago

A plural of an acronym with decamelization enabled currently results in:

slugify('Util APIs'); // util-api-s

It would be nicer if plurals were detected and ignored during decamelization so that it can produce util-apis slug instead.