R/make_names.R
make_english_names.Rd
This function generates `n` random names, each a combination of `n_words` words selected from [common_words].
make_english_names(
n,
n_words = 3,
retry = FALSE,
sep = "_",
case = c("lower", "upper", "title")
)
The number of random names to be generated.
The number of words to combine into a name.
If `TRUE`, a random integer between 1 and 10 is appended to each generated name.
A character string to separate the terms. Not `NA_character_`.
One of either "lower", "upper", or "title". The capitalization to use for each word.
A character vector of length `n` of random names, each composed of `n_word` terms capitalized according to `case` separated by `sep`. Note that names are not guaranteed to be unique.
make_english_names(1, n_words = 2)
#> [1] "country_wing"
make_english_names(2, retry = TRUE)
#> [1] "wrong_use_neighbor1" "usual_not_let8"