/titlecase

Capitalize all English words except articles, coordinating conjunctions, and prepositions (unless they begin or end the title).

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Titlecase Library for Haskell

hackage release stackage LTS package stackage Nightly package CI Status

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.