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.

[maintain] [Publish]

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]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.2, 0.1.0.3, 1, 1.0.1
Change log None available
Dependencies base (>=4.7 && <4.9), blaze-markup, semigroups, text, titlecase [details]
License BSD-3-Clause
Copyright 2015 Nikita Karetnikov
Author Nikita Karetnikov
Maintainer nikita@karetnikov.org
Category Text
Home page https://github.com/nkaretnikov/titlecase
Bug tracker https://github.com/nkaretnikov/titlecase/issues
Source repo head: git clone https://github.com/nkaretnikov/titlecase
Uploaded by NikitaKaretnikov at 2015-11-08T15:49:06Z

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for titlecase-0.1.0.2

[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.