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

Description Usage Arguments Value Examples

View source: R/make_plural.R

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)

trinker/textmod documentation built on June 11, 2018, 3:49 a.m.