add_singular_rule: Add a custom rule for making a word singular

Description Usage Arguments Value Examples

View source: R/rules.R

Description

Add a custom rule for making a word singular

Usage

1
add_singular_rule(plural_word, singular_word)

Arguments

plural_word

plural form of a word

singular_word

desired singular form of a word

Value

nothing (function produces a side effect of modifying in-memory internal package environment)

Examples

1
2
3
4
5
add_singular_rule("singles", "singular")
singularize('singles')
pluralize("irregular")
pluralize(c("woman", "man", "child", "tooth", "foot", "person", "leaf"))
singularize(c("woman", "man", "child", "tooth", "foot", "person", "leaf"))

pluralize documentation built on July 8, 2020, 7:35 p.m.