A common lisp library to easily pluralize and singularize English words.


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"

Basic Usage, plural-of and singular-of:

<code>> (plural-of "octopus") 
> (plural-of "datum")
> (singular-of "children")
> (singular-of "cats")
> (singular-of "data")

Basic Usage, pluralize:

<code>> (pluralize 2 "virus")
> (pluralize 1 "virus")

vana-inflector CL source code.

Topics: Text