An Overview of the inflections API


Rails-like inflections for Clojure.



inflections

by Roman Scherer
Detailed API documentation
Rails-like inflections for Clojure.

Examples:
user> (use 'inflections)
nil
user> (pluralize "word")
"words"
user> (pluralize "virus")
"viri"
user> (singularize "apples")
"apple"
user> (singularize "octopi")
"octopus"
user> (underscore "puni-puni")
"puni_puni"
user> (ordinalize "52")
"52nd"
user> (capitalize "clojure")
"Clojure"
Public variables and functions: add-irregular camelize capitalize dasherize delete-irregular demodulize foreign-key hyphenize irregular! irregular? normalize ordinalize parameterize plural! pluralize reset-irregular-words! reset-plural-rules! reset-singular-rules! reset-uncountable-words! singular! singularize uncountable! uncountable? underscore

Variables and functions in inflections.irregular: add-irregular delete-irregular irregular! irregular? reset-irregular-words!

Variables and functions in inflections.plural: plural! pluralize reset-plural-rules!

Variables and functions in inflections.rules: reset-rules! slurp-rules

Variables and functions in inflections.singular: reset-singular-rules! singular! singularize

Variables and functions in inflections.transform: camelize capitalize dasherize demodulize foreign-key hyphenize normalize ordinalize parameterize underscore

Variables and functions in inflections.uncountable: reset-uncountable-words! uncountable! uncountable?
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.