make_plural: Make Plural (or Verb to Singular) Versions of Words

Description Usage Arguments Value Examples

Description

Add -s, -es, or -ies to words.

Usage

1
2
make_plural(x, keep.original = FALSE,
  irregular = lexicon::pos_df_irregular_nouns)

Arguments

x

A vector of words to make plural.

keep.original

logical. If TRUE the original words are kept in the return vector.

irregular

A data.frame of singular and plural conversions for irregular nouns. The first column should be singular and the second plural form of the irregular noun.

Value

Returns a vector of plural words.

Examples

1
2
x <- c('fox', 'sky', 'dog', 'church', 'fish', 'miss', 'match', 'deer', 'block')
make_plural(x)

Example output

[1] "foxes"    "skies"    "dogs"     "churches" "fish"     "misses"   "matches" 
[8] "deer"     "blocks"  

textclean documentation built on May 2, 2019, 7:22 a.m.