inflection icon indicating copy to clipboard operation
inflection copied to clipboard

titleize("2ND PART") = "2nd Part", not "2 Nd Part"

Open rvishna opened this issue 3 years ago • 1 comments

Could this be included as a new feature that works for "1st", "2nd", "3rd", "4th", etc.

rvishna avatar Feb 28 '21 22:02 rvishna

Workaround:

' '.join([word.capitalize() for word in humanize("2ND PART").split(' ')])

rvishna avatar Feb 28 '21 22:02 rvishna