Skip to content

ejackson/inflections-clj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

137 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Clojure Inflection Library

Rails-like inflections for Clojure.

## Installation

Via Clojars: http://clojars.org/inflections.

## Documentation

The API documentation is available at: http://r0man.github.com/inflections-clj.

## Examples

(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) 2011 Roman Scherer

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

About

Clojure Inflection Library

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors