Loads multiple dictionaries into a named list. Dictionaries that fail to
load produce a warning and a NULL entry, allowing the batch to
continue.
Arguments
- names
Character vector of dictionary names (e.g.,
c("sensorimotor", "nrc_vad", "wkb_vad")).- ...
Additional arguments passed to
load_dictionary, such asformat,auto_download,path,quiet,cache,force_rebuild,unify, orlarge.
Value
A named list where each element is a data frame (or NULL
if loading failed for that dictionary).
See also
load_dictionary for loading a single dictionary,
list_dictionaries for available dictionaries.
Examples
if (FALSE) { # \dontrun{
# Load multiple dictionaries
dicts <- load_dictionaries(c("nrc_vad", "wkb_vad"))
head(dicts$nrc_vad)
# Load with unification
dicts <- load_dictionaries(c("english_freqs", "english_syllables"), unify = TRUE)
# Unknown dictionaries produce NULL with a warning
dicts <- load_dictionaries(c("sensorimotor", "nonexistent_xyz"))
is.null(dicts$nonexistent_xyz) # TRUE
} # }
