Skip to content
Clojure Inflection Library
Find file
Pull request Compare This branch is 279 commits behind r0man:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/inflections
test/inflections/test
.gitignore
COPYING
README.markdown
project.clj

README.markdown

Clojure Inflection Library

Rails-like inflections for Clojure.

Installation

The JAR is available on Clojars. The master branch is targeting Clojure v1.2. Use versions below 0.4 for previous versions.

Documentation

The API documentation is available here.

Examples


user> (use 'inflections.core)
nil
user> (pluralize "word")
"words"
user> (pluralize "virus")
"viri"
user> (singularize "apples")
"apple"
user> (singularize "octopi")
"octopus"
user> (underscore "puni-puni")
"puni_puni"
user> (ordinalize "52")
"52nd"
user> (capitalize "clojure")
"Clojure"

Something went wrong with that request. Please try again.