peti / titlecase

Capitalize all English words except articles, coordinating conjunctions, and prepositions (unless they begin or end the title).
http://hackage.haskell.org/package/titlecase
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

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.