count-of-things ( count word -- str )
English natural language transformations

Prev:?pluralize ( count singular -- singular/plural )
Next:singular? ( word -- ? )


Inputs and outputs
counta number
worda string
stra string

Word description
Transform a quantity and a word into a construct consisting of the quantity, and the correct plural or singular form of the word. word is expected to be in singular form.

This word attempts to preserve the letter case style of the input.
Due to the unique way in which the English language is structured, the number 0 is considered plural; 1 is the only singular quantity.

USING: english io ; 10 "baby" count-of-things print
10 babies

USING: english io ; 2.5 "FISH" count-of-things print
2.5 FISH

See also
pluralize, ?pluralize, plural?, singularize, singular?