- pluralize(word, count?, inclusive?): string
Parameters
- word: string
Optional
count: numberOptional
inclusive: boolean
Returns string
Methods
addIrregularRule
- addIrregularRule(single, plural): void
Parameters
- single: string
- plural: string
Returns void
addPluralRule
- addPluralRule(rule, replacement): void
Parameters
- rule: string | RegExp
- replacement: string
Returns void
addSingularRule
- addSingularRule(rule, replacement): void
Parameters
- rule: string | RegExp
- replacement: string
Returns void
addUncountableRule
- addUncountableRule(word): void
Returns void
isPlural
- isPlural(word): boolean
Returns boolean
isSingular
- isSingular(word): boolean
Returns boolean
plural
- plural(word): string
Returns string
singular
- singular(word): string
Returns string
Pluralize or singularize a word based on the passed in count.