glosario allows users to create and retrieve multilingual glossaries. By default, glosario provides access to a community-curated glossary hosted by The Carpentries. This repository also documents the structure expected for the glossaries that can be managed by glosario.
There is also a Python interface.
glosario is still in the development stage and is only available from GitHub with:
# install.packages("remotes")
remotes::install_github("carpentries/glosario-r")To get definitions in other languages we would do:
define("plus_one", lang = 'fr')
#> +1: Un vote en faveur de quelque chose.
#> If you want to use your custom glossary file you can do it the following way:
custom_url <- "https://raw.githubusercontent.com/carpentries/glosario/master/glossary.yml"
g <- get_glossary(url = custom_url)
define("plus_one", lang = 'fr', glossary = g)
#> +1: Un vote en faveur de quelque chose.
#> To add links to definitions, you can use the gdef function for inline writing:
Which would look like this:
This is a Data Frame, they are used for storing data.