Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.org

Inflections

https://img.shields.io/clojars/v/inflections.svg https://travis-ci.org/r0man/inflections-clj.svg http://jarkeeper.com/r0man/inflections-clj/status.svg https://jarkeeper.com/r0man/inflections/downloads.svg

Rails-like inflection library for Clojure and ClojureScript.

Usage

(use 'inflections.core)

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

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

(pluralize 12 "virus")
;=> "12 viri"

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

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

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

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

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

License

Copyright (C) 2013-2016 r0man

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

About

Rails-like inflection library for Clojure and ClojureScript

Resources

License

Sponsor this project

 

Packages

No packages published
You can’t perform that action at this time.