Skip to content

Loading…

address singularizes to addres - bug fixed #5

Merged
merged 1 commit into from

2 participants

@tessat

"Address" (and any other word that ends in "ss") will now be recognized as already being singular.

@larzconwell
Collaborator

Awesome, thanks! I'll merge as soon as Github lets me.

@larzconwell larzconwell merged commit 32b8f61 into mde:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 30, 2012
  1. @tessat
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/inflection.js
View
1 lib/inflection.js
@@ -119,6 +119,7 @@ var inflection = new (function () {
setPlural(/(quiz)$/i, "$1zes");
setSingular(/s$/i, "")
+ setSingular(/ss$/i, "ss")
setSingular(/(n)ews$/i, "$1ews")
setSingular(/([ti])a$/i, "$1um")
setSingular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, "$1$2sis")
Something went wrong with that request. Please try again.