-
plural(num, item) → {string}
-
Get a string in the format 'num item'
Parameters:
Name |
Type |
Description |
num |
number
|
The number of items that determines if item should be plural. |
item |
string
|
The item to be eventually converted to plural |
Returns:
string
- A string containing the number and the word if num
is 1, otherwise its plural.
-
wordPlural(item) → {string}
-
Gets the plural of a string
Parameters:
Name |
Type |
Description |
item |
string
|
The item in singular |
Returns:
string
- The item in plural
-
wordSingular(item, ie) → {string}
-
Gets the singular of a string
Parameters:
Name |
Type |
Default |
Description |
item |
string
|
|
The item in plural |
ie |
boolean
|
false
|
Whether the world should end in 'y' or 'ie' (only applies to words which end in 'ies'). |
Returns:
string
- The item in singular