powered by
If the built-in rules are not sufficient, use add_plural_rule() to customize the behavior.
add_plural_rule()
pluralize(x, n = 2, prepend = FALSE)
character vector of words to make plural
amount of plural (some plurals change by amount and this also impacts the prepend functionality)
prepend
should we prepend the value of n to the output? Default: FALSE
n
FALSE
character vector of modified pluralized words
# NOT RUN { pluralize('test') pluralize('test', 5) pluralize('test', 5, TRUE) pluralize('regex') # }
Run the code above in your browser using DataLab