Skip to content

Instantly share code, notes, and snippets.

@sgrove
Created November 14, 2010 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgrove/676199 to your computer and use it in GitHub Desktop.
Save sgrove/676199 to your computer and use it in GitHub Desktop.
:vana-inflector plural-of
(defun plural-of (word)
"Returns the plural of a word if it's singular, or itself if already plural"
(cond ((uncountable? word) word)
((irregular? word) (get-irregular-plural word))
(t (inflector-helper word *plurals*))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment