Closed igorburago closed 4 years ago
Unless I am missing something, small_first_last
should always be
False
when we are recursing into the parts of a compound word,
regardless of whether those parts are joined with slashes or hyphens.
See #63.
I don't think this issue is fixed in 1.1.1
>>> titlecase.titlecase("mother-in-law")
'Mother-In-Law'
should not capitalize "in"
When
titlecase()
recurses to process separate words of a hyphenated compound word, it passes on the current value of thesmall_first_last
parameter unchanged. Naturally, this leads to incorrect title-casing of compound words, containing small words.For instance, words
end-to-end
andwork-in-progress
are currently title-cased asEnd-To-End
andWork-In-Progress
instead of the correctEnd-to-End
andWork-in-Progress
.