pluralize: Pluralize an english noun

Description Usage Arguments Value Examples

Description

Pluralize an english noun

Usage

1
pluralize(word, count = NA)

Arguments

word

The word to be pluralized

count

An optional count to determine if pluralization is necessary. The word wil always be pluralized if left blank.

Value

The pluralized word or the original word if count is 1 or -1.

Examples

1
2
3
pluralize("chair")    # => "chairs"
pluralize("box", 1)   # => "box"
pluralize("box", 2)   # => "boxes"

dansbits/wordsRhard documentation built on May 14, 2019, 6:06 p.m.