Package: languagelayeR 1.2.4
languagelayeR: Access the 'languagelayer' API
Improve your text analysis with languagelayer <https://languagelayer.com>, a powerful language detection API.
Authors:
languagelayeR_1.2.4.tar.gz
languagelayeR_1.2.4.zip(r-4.5)languagelayeR_1.2.4.zip(r-4.4)languagelayeR_1.2.4.zip(r-4.3)
languagelayeR_1.2.4.tgz(r-4.4-any)languagelayeR_1.2.4.tgz(r-4.3-any)
languagelayeR_1.2.4.tar.gz(r-4.5-noble)languagelayeR_1.2.4.tar.gz(r-4.4-noble)
languagelayeR_1.2.4.tgz(r-4.4-emscripten)languagelayeR_1.2.4.tgz(r-4.3-emscripten)
languagelayeR.pdf |languagelayeR.html✨
languagelayeR/json (API)
NEWS
# Install 'languagelayeR' in R: |
install.packages('languagelayeR', repos = c('https://colinfay.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/colinfay/languagelayer/issues
On CRAN:languagelayeR-1.2.4(2019-02-12)
Last updated 6 years agofrom:9531f60fab. Checks:7 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Jan 02 2025 |
R-4.5-win | OK | Jan 02 2025 |
R-4.5-linux | OK | Jan 02 2025 |
R-4.4-win | OK | Jan 02 2025 |
R-4.4-mac | OK | Jan 02 2025 |
R-4.3-win | OK | Jan 02 2025 |
R-4.3-mac | OK | Jan 02 2025 |
Exports:get_langget_supported_lang
Dependencies:askpassattemptcurlhttrjsonlitemimeopensslR6rlangsys
Citation
To cite package ‘languagelayeR’ in publications use:
FAY C (2025). languagelayeR: Access the 'languagelayer' API. R package version 1.2.4, https://github.com/colinfay/languagelayer.
Corresponding BibTeX entry:
@Manual{, title = {languagelayeR: Access the 'languagelayer' API}, author = {Colin FAY}, year = {2025}, note = {R package version 1.2.4}, url = {https://github.com/colinfay/languagelayer}, }
Readme and manuals
languagelayeR is now on CRAN
languagelayerR
This package is designed to detect a language from a character string in R by acessing the languagelayer API — https://languagelayer.com/
Language layer API
This package offers a language detection tool by connecting to the languagelayer API, a JSON interface designed to extract language information from a character string.
Install languagelayerR
Install this package directly in R :
From CRAN :
install.packages("languagelayeR")
From Github :
# devtools::install_github("ColinFay/languagelayeR")
install.packages("languagelayeR", repos = c('https://colinfay.r-universe.dev', 'https://cloud.r-project.org'))
How languagelayeR works
The version 1.1.0 works with two functions. Which are :
-
get_lang
Get language information from a character string -
get_supported_lang
Get all current accessible languages on the languagelayer API
First of all
Before any request on the languagelayer, you need to get your API key from your language layer dashboard.
Examples
getLanguage
Detect a language from a character string.
get_lang(query = "I really really love R and that's a good thing, right?", api_key = "your_api_key")
getSupportedLanguage
List all the languages available on the languagelayer API.
get_supported_lang(api_key = "your_api_key")
Contact
Questions and feedbacks welcome !
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Help Manual
Help page | Topics |
---|---|
Get language | get_lang |
Get supported languages | get_supported_lang |
languagelayeR | languagelayeR |