The hard worker doing everything for mgsub_censor
censor_worker(string, pattern, censor, split = any(nchar(censor) > 1),
seed = NULL, ...)
a character vector where replacements are sought
Character string to be matched in the given character vector
character to use in censoring - see details
if a multicharacter censor pattern is provided, should it be split to preserve original string length
optional parameter to fix sampling of multicharacter censors
arguments to pass to regexpr family