Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails-like inflection library for Clojure and ClojureScript
Clojure

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
resources
runners
src/inflections
test/inflections/test
.gitignore
.travis.yml
COPYING
README.md
index.html
project.clj

README.md

Clojure Inflection Library Build Status

Rails-like inflection library for Clojure and ClojureScript.

Installation

Via Clojars: http://clojars.org/inflections.

Usage

(use 'inflections.core)

(plural "word")
;=> "words"

(plural "virus")
;=> "viri"

(singular "apples")
;=> "apple"

(singular "octopi")
;=> "octopus"

(underscore "puni-puni")
;=> "puni_puni"

(ordinalize "52")
;=> "52nd"

(capitalize "clojure")
;=> "Clojure"

License

Copyright (C) 2013 Roman Scherer

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.