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/?p=labelle.git;a=commitdiff_plain;h=2c38803211bc5bf0e0dbe8051fac5ba5c3b4f7ee 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"); // :( }