_pluralize
Produces the right word depending on how many elements are in a collection. --
Function
RECEIVED -> _pluralize(SINGULAR,PLURAL)
This is a convenient method for choosing different text depending on a Property. The RECEIVED
Context should usually be a List. If it contains a single element, _pluralize produces
SINGULAR; if it contains multiple or zero elements, _pluralize produces PLURAL.
Note that this behaviour is pretty English-specific. We expect that other variations will
be needed for other languages in the long run.