Package Development stoppped after realizing there is already a better Package by ColinFay available for the same
The goal of languagelayeR
is to detect language of the given string using LanguageLayer API.
You can install languagelayeR
from github with:
# install.packages("devtools")
devtools::install_github("amrrs/languagelayeR")
The languagelayer API was built to provide a seamless, powerful and cost-effective way of automating language detection functionalities in any application, framework and programming language. Register here to get your API Key. Refer this documentation to understand more about the API.
This is a basic example which shows you how to use languagelayeR
package to detect language of a string.
## Detect Language
detect_language(access_key = 'xxxx', query = 'சென்னை') #use your own API Key
Output:
language_code language_name probability percentage reliable_result
1 ta Tamil 1.725234 100 FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.