Skip to contents

Pluralize a Word in English

Usage

pluralize(x, n = 2, prepend = FALSE)

Arguments

x

character vector of words to make plural

n

number 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

Value

character vector of modified pluralized words

Examples

pluralize('test')
#> [1] "tests"
pluralize('test', 5)
#> [1] "tests"
pluralize('test', 5, TRUE)
#> [1] "5 tests"
pluralize('regex')
#> [1] "regexes"