r0man.inflections-clj

https://github.com/r0man/inflections-clj.git

git clone 'https://github.com/r0man/inflections-clj.git'

(ql:quickload :r0man.inflections-clj)
174

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

Rails-like inflection library for Clojure and ClojureScript.

** Usage

#+BEGIN_EXAMPLE (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"

#+END_EXAMPLE

** License

Copyright (C) 2013-2016 [[https://github.com/r0man][r0man]]

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