pluralise {verbaliseR} | R Documentation |
Pluralise words if their accompanying number is not 1
Description
Pluralise words if their accompanying number is not 1
Usage
pluralise(
word,
count,
plural = "s",
add_or_swap = "add",
include_number = TRUE,
sentence_start = FALSE,
zero_or_no = "no",
uk_or_us = "UK",
big_mark = ","
)
Arguments
word |
A word which should be returned as plural if |
count |
A number to apply to |
plural |
How to make the plural; defaults to an "s" which is added at the end of the word.
Can be anything. See |
add_or_swap |
Choose between |
include_number |
Logical. If |
sentence_start |
Logical. Defaults to |
zero_or_no |
Prefered string to use where count == 0. Defaults to "no". Can be anything. |
uk_or_us |
Only used if |
big_mark |
Passed to |
Value
A word which is pluralised or not based on the value of count
Examples
pluralise("penguin", 3)
pluralise("bateau", 1234, "x")
pluralise("sheep", 333, "sheep", add_or_swap = TRUE, sentence_start = TRUE)