add_s function

Make Plural (or Verb to Singular) Versions of Words

Make Plural (or Verb to Singular) Versions of Words

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

add_s(x, keep.original = TRUE)

Arguments

  • x: A vector of words to make plural.
  • keep.original: logical. If TRUE the original words are kept in the return vector.

Returns

Returns a vector of plural words.

Examples

set.seed(10) add_s(sample(GradyAugmented, 10)) set.seed(10) add_s(sample(GradyAugmented, 10), FALSE)
  • Maintainer: Tyler Rinker
  • License: GPL-2
  • Last published: 2023-05-11