Skip to contents

This is the main function for loading dictionaries from the package. It automatically handles:

  • Core dictionaries (installed with package): sensorimotor, concreteness

  • On-demand dictionaries: automatically downloads if not found locally

Usage

get_dictionary(name, ...)

Arguments

name

Dictionary name (e.g., "global_surnames", "english_freqs").

...

Additional arguments passed to load_dictionary.

Value

A data frame containing the dictionary data.

Details

By default, it uses the .qs2 format which is smaller and faster to load.

Examples

if (FALSE) { # \dontrun{
# Load a core dictionary (already installed)
sens <- get_dictionary("sensorimotor")

# Load an on-demand dictionary (auto-downloads if needed)
surnames <- get_dictionary("global_surnames")

# Load with specific format
data <- get_dictionary("english_freqs", format = "rda")

# Check if downloaded without auto-download
data <- get_dictionary("organisms", auto_download = FALSE)
} # }

# See all available dictionaries:
# browseURL("https://culturalcartography.gitlab.io/text2map.dictionaries/")