Skip to content

ezrankayamba/inflections-clj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Packages

No packages published