Detect language from a character string.
the character string you want to detect the language from.
your API key.
Takes a character string, returns a data.frame with the available values.
Returns a data.frame with the detected languages, in descending order of probability. Values are : language_code, language_name, probability (length of the provided query text and how well it is identified as a language), percentage (confidence margin between multiple matches), and reliable_result (whether or not the API is completely confident about the main match).
Before running a function of this package for the first time, you need to set your API key.
get_lang(query = "I really really love R and that's a good thing, right?", api_key = "apikey")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.