Carrot reference
Functions
pluralize()
given a value of type string , returns that value in plural form syntax pluralize(number, singular\[, plural]) number the specified number of instances of the evaluated string singular the singular form of the evaluated string plural (optional) the plural form of the evaluated string return type string docid\ ujw2aqaktel5uuklup73s sample usage pluralize(10, "banana") returns "bananas" pluralize(1, "address", "addresses") returns "address" pluralize(10, "address", "addresses") returns "addresses"' supported data types input type return type logic number docid\ uci5tctfvbhonej6zqijg , string docid\ ujw2aqaktel5uuklup73s string docid\ ujw2aqaktel5uuklup73s if a number value greater than 1 , or less than 1 , and a single string value are passed, the string value will be returned with an s appended to it if a number value of 1 is passed, the string value will remain in singular form number docid\ uci5tctfvbhonej6zqijg , string docid\ ujw2aqaktel5uuklup73s (x2) string docid\ ujw2aqaktel5uuklup73s if a number value greater than 1 , or less than 1 , and two string value are passed, including the optional parameter, the second string value will be returned if a number value of 1 is passed, the string value will remain in singular form unsupported data types null docid\ n9trvqonnbknql9drnbp6 unsupported data types return null