Skip to content

Miscellaneous

pluralize()

pluralize() — returns any

Returns the plural form of the passed in word. Can also pluralize a word based on a value passed to the count argument.

NameTypeRequiredDefaultDescription
wordstringyesThe word to pluralize.
countnumericyesPluralization will occur when this value is not 1.
returnCountbooleanyesWill return count prepended to the pluralization when true and count is not -1.
pluralize(word [, count, returnCount ]) <!--- Pluralize a word, will result in "people" --->
#pluralize("person")#

<!--- Pluralize based on the count passed in --->
Your search returned #pluralize(word="person", count=users.RecordCount)#