From: Joe Wreschnig Date: Thu, 29 May 2014 22:27:15 +0000 (+0200) Subject: Handle "headgear" as a plural. X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;ds=inline;h=2c38803211bc5bf0e0dbe8051fac5ba5c3b4f7ee;hp=1bbc0d81d01fdf127f64ac5d3c5e6866bf872119;p=labelle.git Handle "headgear" as a plural. --- diff --git a/acnl-outfit.js b/acnl-outfit.js index 50b9832..333335b 100644 --- a/acnl-outfit.js +++ b/acnl-outfit.js @@ -76,7 +76,8 @@ function isPosessive (item) { } function isPlural (item) { - return (item.substr(-1) === "s" + return item.substr(-8) === "headgear" + || (item.substr(-1) === "s" && item.substr(-2) !== "ss" && item.substr(-6) !== "cosmos"); // :( }