Returns the singular or plural form of a word based on a count.
the count driving pluralisation
the singular form of the word
Optional
the plural form of the word — defaults to ${singular}s
${singular}s
singular when count is exactly 1, plural otherwise
singular
count
plural
pluralize(1, 'product');// returns 'product' Copy
pluralize(1, 'product');// returns 'product'
pluralize(2, 'product');// returns 'products' Copy
pluralize(2, 'product');// returns 'products'
pluralize(3, 'organisation level', 'organisation levels');// returns 'organisation levels' Copy
pluralize(3, 'organisation level', 'organisation levels');// returns 'organisation levels'
Returns the singular or plural form of a word based on a count.