Convert various input as pattern to a vector used in tokens_select, tokens_compound and kwic.
pattern2list(
x,
types,
valuetype,
case_insensitive,
concatenator = "_",
levels = 1,
remove_unigram = FALSE,
keep_nomatch = FALSE
)the type of pattern matching: "glob" for "glob"-style
wildcard expressions; "regex" for regular expressions; or "fixed" for
exact matching. See valuetype for details.
logical; if TRUE, ignore case when matching a
pattern or dictionary values
concatenator that join multi-word expression in tokens object
only used when pattern is a dictionary
ignore single-word patterns if TRUE