titlecase: Convert English words to title case

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


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: https://en.wikipedia.org/wiki/List_of_English_prepositions.

[Skip to ReadMe]


Versions0.1.0.0,,,,, 1, 1.0.1
Change logNone available
Dependenciesbase (>=4.7 && <4.9), blaze-markup, semigroups, text, titlecase [details]
Copyright2015 Nikita Karetnikov
AuthorNikita Karetnikov
Home pagehttps://github.com/nkaretnikov/titlecase
Bug trackerhttps://github.com/nkaretnikov/titlecase/issues
Source repositoryhead: git clone https://github.com/nkaretnikov/titlecase
UploadedSun Nov 8 15:49:06 UTC 2015 by NikitaKaretnikov




Maintainers' corner

For package maintainers and hackage trustees

Readme for titlecase-

[back to package description]

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 https://hackage.haskell.org/package/titlecase.