titlecase-0.1.0.1: Convert English words to title case

Safe HaskellNone
LanguageHaskell2010

Data.Text.Titlecase

Synopsis

Documentation

titlecase :: Text -> Titlecase Source

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.