From 2c38803211bc5bf0e0dbe8051fac5ba5c3b4f7ee Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Fri, 30 May 2014 00:27:15 +0200 Subject: [PATCH] Handle "headgear" as a plural. --- acnl-outfit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); // :( } -- 2.30.2