titlecase

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.


Keywords
bsd3, library, program, test, Data.Text.Titlecase, Data.Text.Titlecase.Internal
License
BSD-3-Clause
Install
cabal install titlecase-1.0.1

Documentation

Titlecase Library for Haskell

This library offers fairly robust titlecase function to capitalize a string to English Title Case. Unlike toTitle from the text library -- which simply capitalizes the first letter of every word -- this function respects rules with regard to articles, conjunctions, and prepositions.

It is available from Hackage at https://hackage.haskell.org/package/titlecase.