The titlecase package


Capitalize all English words except articles (a, an, the), coordinating conjunctions (for, and, nor, but, or, yet, so), and prepositions (unless they begin or end the title). The prepositions are taken from this list:

[Skip to ReadMe]


Dependenciesbase (>=4.7 && <4.9), blaze-markup, semigroups, text, titlecase [details]
Copyright2015 Nikita Karetnikov
AuthorNikita Karetnikov
Home page
Bug tracker
Source repositoryhead: git clone
UploadedSun Nov 8 15:49:06 UTC 2015 by NikitaKaretnikov




Maintainers' corner

For package maintainers and hackage trustees

Readme for titlecase-

Titlecase Library for Haskell

This library basically offers a rough but mostly working function titlecase to take any Text string and capitalize it according to English Title Case. While the Data.Text function toTitle simply capitalizes the first letter of every word, this Data.Text.Titlecase titlecase function uses the list of common words to not capitalize. It then respects the rule of capitalizing the first and last words regardless.

On Hackage at