Quantity used to pick singular (1) vs plural (any other number, including 0).
Singular string, or [singular, plural] tuple; bare strings get a simple English plural (wallet → wallets).
When true (default), prefixes the result with "${count} "; when false, returns the word alone.
The chosen singular or plural term, optionally prefixed with the count.
pluralize(0, "wallet"); // "0 wallets"
pluralize(1, "wallet"); // "1 wallet"
pluralize(2, "wallet"); // "2 wallets"
pluralize(2, "address"); // "2 addresses" (auto-pluralises trailing "s")
pluralize(1, ["person", "people"]); // "1 person"
pluralize(2, ["person", "people"]); // "2 people"
pluralize(2, ["person", "people"], false); // "people" (count omitted)
Formats a count with the appropriate singular or plural term.