Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 10 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Titlecase Library for Haskell

[![hackage release](https://img.shields.io/hackage/v/titlecase.svg?label=hackage)](http://hackage.haskell.org/package/titlecase)
[![stackage LTS package](http://stackage.org/package/titlecase/badge/lts)](http://stackage.org/lts/package/titlecase)
[![stackage Nightly package](http://stackage.org/package/titlecase/badge/nightly)](http://stackage.org/nightly/package/titlecase)
[![CI Status](https://github.com/peti/titlecase/actions/workflows/haskell-ci.yml/badge.svg)](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 .