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:Colin FAY [aut, cre]

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'))

Peer review:

Bug tracker:https://github.com/colinfay/languagelayer/issues

On CRAN:languagelayeR-1.2.4(2019-02-12)

4.40 score 5 stars 7 scripts 147 downloads 2 exports 10 dependencies

Last updated 6 years agofrom:9531f60fab. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 02 2025
R-4.5-winOKJan 02 2025
R-4.5-linuxOKJan 02 2025
R-4.4-winOKJan 02 2025
R-4.4-macOKJan 02 2025
R-4.3-winOKJan 02 2025
R-4.3-macOKJan 02 2025

Exports:get_langget_supported_lang

Dependencies:askpassattemptcurlhttrjsonlitemimeopensslR6rlangsys

Introduction to languagelayeR

Rendered fromIntroduction.Rmdusingknitr::rmarkdownon Jan 02 2025.

Last update: 2019-02-12
Started: 2017-07-10

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

Travis build status Coverage status

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 pageTopics
Get languageget_lang
Get supported languagesget_supported_lang
languagelayeRlanguagelayeR