plu_ralize {plu} | R Documentation |
Pluralize a word
Description
Pluralize a word
Usage
plu_ralize(
x,
irregulars = getOption("plu.irregulars", c("moderate", "conservative", "liberal",
"none"))
)
ralize(
x,
irregulars = getOption("plu.irregulars", c("moderate", "conservative", "liberal",
"none"))
)
Arguments
x |
A character vector of English words to be pluralized |
irregulars |
What level of irregularity to use in pluralization.
|
Value
The character vector x
pluralized
Irregular plurals
Many words in English have both regular and irregular plural forms.
For example, the word "person" can be pluralized as "persons" or "people",
and the word "formula" can be pluralized as "formulas" or "formulae".
plu
offers several options for how to handle words with multiple plurals.
The
moderate
list attempts to apply the most common pluralization, whether it is regular or irregular. This chooses the irregular plural "people" but the regular plural "formulas".The
conservative
list attempts to apply an irregular plural to every word that has one. This chooses "people" and "formulae", but still uses regular plurals for words that have no irregular plural form.The
liberal
list attempts to apply a regular plural to every word that has one. This chooses "persons" and "formulas", but still uses irregular plurals for words that have no common regular plural, like "women". Many words in English have invariant plurals that look exactly the same as their singular forms, like "fish" or "deer". Theliberal
list attempts to use regular plurals for these words, producing "fishes" and "deers".The
none
list applies regular pluralization rules to all words, even those with no common regular plural. This produces, for example, "womans" as a plural for "woman" even though this is not a common English word.
Source
Irregular plurals list adapted from the Automatically Generated Inflection Database (AGID).
See plu-package for more details.
See Also
plu_ral()
to pluralize an English phrase based on a condition
Examples
plu::ralize("word")
plu::ralize(c("group", "word"))
plu::ralize(c("formula", "person", "child"), irregulars = "conservative")
plu::ralize(c("formula", "person", "child"), irregulars = "moderate")
plu::ralize(c("formula", "person", "child"), irregulars = "liberal")
plu::ralize(c("formula", "person", "child"), irregulars = "none")