Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r0man/inflections-clj
Rails-like inflection library for Clojure and ClojureScript
https://github.com/r0man/inflections-clj
Last synced: 9 days ago
JSON representation
Rails-like inflection library for Clojure and ClojureScript
- Host: GitHub
- URL: https://github.com/r0man/inflections-clj
- Owner: r0man
- License: epl-1.0
- Created: 2010-02-10T19:26:59.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T20:05:13.000Z (6 months ago)
- Last Synced: 2024-10-13T10:25:24.175Z (26 days ago)
- Language: Clojure
- Homepage:
- Size: 396 KB
- Stars: 217
- Watchers: 6
- Forks: 22
- Open Issues: 4
-
Metadata Files:
- Readme: README.org
- Funding: .github/FUNDING.yml
- License: COPYING
Awesome Lists containing this project
- awesome-nlp - Infections-clj - 用於 Clojure 和 ClojureScript 的類似 Rails 的變形函式庫。 (函式庫 / 書籍)
- awesome-clojurescript - inflections-clj - like inflection library for Clojure and ClojureScript. (Awesome ClojureScript / Miscellaneous)
README
* 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://versions.deps.co/r0man/inflections-clj][https://versions.deps.co/r0man/inflections-clj/status.svg]]
[[https://versions.deps.co/r0man/inflections-clj][https://versions.deps.co/r0man/inflections-clj/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-2022 [[https://github.com/r0man][r0man]]
Distributed under the Eclipse Public License, the same as Clojure.