Created
November 14, 2010 23:10
-
-
Save sgrove/676199 to your computer and use it in GitHub Desktop.
:vana-inflector plural-of
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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