formatPlural
Creates a formatted string with count and correctly pluralized word.
count(required): numeric countword(required): singular form of the word
bash
echo '{"n": 3}' | utlx -e 'formatPlural($input.n, "item")'
# "3 items"utlx
{
summary: formatPlural(count($input.errors), "error"),
files: formatPlural($input.fileCount, "file")
}