aboutsummaryrefslogtreecommitdiff
path: root/node_modules/plur/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/plur/index.js')
-rw-r--r--node_modules/plur/index.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/plur/index.js b/node_modules/plur/index.js
deleted file mode 100644
index ed3f9b06b..000000000
--- a/node_modules/plur/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-var irregularPlurals = require('irregular-plurals');
-
-module.exports = function (str, plural, count) {
- if (typeof plural === 'number') {
- count = plural;
- }
-
- if (str in irregularPlurals) {
- plural = irregularPlurals[str];
- } else if (typeof plural !== 'string') {
- plural = (str.replace(/(?:s|x|z|ch|sh)$/i, '$&e').replace(/([^aeiou])y$/i, '$1ie') + 's')
- .replace(/i?e?s$/i, function (m) {
- var isTailLowerCase = str.slice(-1) === str.slice(-1).toLowerCase();
- return isTailLowerCase ? m.toLowerCase() : m.toUpperCase();
- });
- }
-
- return count === 1 ? str : plural;
-};