Usage
Example Usage:
<code>> (use-package :vana-inflector)
> (let ((dollars 1.7)
(users 34)
(purchases 1))
(format nil "The site has ~D ~A, with a total of ~D ~A and $~D ~A"
users (pluralize users "user")
purchases (pluralize purchases "purchase")
dollars (pluralize dollars "dollar")))
"The site has 34 users, with a total of 1 purchase and $1.7 dollars"
</code> Basic Usage, plural-of and singular-of:
<code>> (plural-of "octopus") "octopuses" > (plural-of "datum") "data" > (singular-of "children") "child" > (singular-of "cats") "cat" > (singular-of "data") "datum" </code>
Basic Usage, pluralize:
<code>> (pluralize 2 "virus") "viri" > (pluralize 1 "virus") "virus" </code>
vana-inflector CL source code.
cl-inflector is a branched of this project at github, to support it more long term and to fix loading / testing.
Topics: Text