Skip to content

Latest commit

 

History

420 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

* Inflections

  [[https://clojars.org/inflections][https://img.shields.io/clojars/v/inflections.svg]]
  [[https://github.com/r0man/inflections-clj/actions?query=workflow%3A%22Clojure+CI%22][https://github.com/r0man/inflections-clj/workflows/Clojure%20CI/badge.svg]]
  [[https://github.com/r0man/inflections-clj/actions?query=workflow%3A%22ClojureScript+CI%22][https://github.com/r0man/inflections-clj/workflows/ClojureScript%20CI/badge.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-2022 [[https://github.com/r0man][r0man]]

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

About

Rails-like inflection library for Clojure and ClojureScript

Resources

Stars

223 stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages