add_irregular_rule: Add a custom rule for making "deregularizing" a word

Description Usage Arguments Value Examples

View source: R/rules.R

Description

"regular" is the "deregularized" form of "irregular". Calling plural("irregular") will return "regular" if you define a rule such as add_irregular_rule("irregular", "regular").

Usage

1
add_irregular_rule(irregular_word, regular_word)

Arguments

irregular_word

the irregular form of the word

regular_word

regular form of a word

Value

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

Examples

1
2
3
add_irregular_rule("irregular", "regular")
pluralize("irregular")
pluralize("paper")

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