Skip to content
Proyectos

r0man/inflections-clj

Ver en GitHub

Acerca de

Rails-like inflection library for Clojure and ClojureScript

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Inflections

https://img.shields.io/clojars/v/inflections.svg https://github.com/r0man/inflections-clj/workflows/Clojure%20CI/badge.svg https://github.com/r0man/inflections-clj/workflows/ClojureScript%20CI/badge.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-2022 r0man

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

Explorar proyectos relacionados

Cargando…