Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 711 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 711 Bytes

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.