View source: R/get_glossary_entries2.R
get_glossary_entries2 | R Documentation |
get_glossary_entries2
retrieves all term pairs from a specified glossary using the DeepL API Free.
For a list of available glossaries, see list_glossaries2
.
get_glossary_entries2(glossary_id, auth_key)
glossary_id |
A string specifying the unique ID of the glossary whose entries you want to retrieve. |
auth_key |
A string representing the authentication key for the DeepL API Free.
If not provided, the function will attempt to retrieve the key from the environment
variable |
Glossaries are custom dictionaries consisting of source-target term pairs. The DeepL API returns these entries as tab-separated values (TSV). This function parses and converts them into a tidy tibble for further analysis.
To use this function, you must obtain an authentication key by registering for a DeepL API Free account at DeepL API Free.
A tibble with two columns representing the source and target language terms. Column names are automatically inferred from the glossary's language pair.
DeepL API Documentation — Get Glossary Entries
## Not run:
glossary_id <- "your-glossary-id"
entries <- get_glossary_entries2(glossary_id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.