https://github.com/peti/titlecase
Capitalize all English words except articles, coordinating conjunctions, and prepositions (unless they begin or end the title).
https://github.com/peti/titlecase
Last synced: 7 months ago
JSON representation
Capitalize all English words except articles, coordinating conjunctions, and prepositions (unless they begin or end the title).
- Host: GitHub
- URL: https://github.com/peti/titlecase
- Owner: peti
- License: bsd-3-clause
- Created: 2016-10-27T15:52:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T13:41:40.000Z (over 2 years ago)
- Last Synced: 2025-03-01T02:27:26.805Z (7 months ago)
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/titlecase
- Size: 44.9 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Titlecase Library for Haskell
[](http://hackage.haskell.org/package/titlecase)
[](http://stackage.org/lts/package/titlecase)
[](http://stackage.org/nightly/package/titlecase)
[](https://github.com/peti/titlecase/actions/workflows/haskell-ci.yml)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 .