detect2 | R Documentation |
detect2
guesses the language of a text using DeepL API Free.
Use available_languages
to list all supported languages. An authentication key
is required to use this service. With the DeepL API Free package, developers can translate
up to 500,000 characters per month for free.
detect2(text, auth_key = "your_key")
text |
character vector with texts to classify. Only UTF8-encoded plain text is supported. An element can contain several sentences, but should not exceed 30kbytes. |
auth_key |
Authentication key. |
To get an authentication key, you need to register for a DeepL API Free account (https://www.deepl.com/pro#developer).
## Not run:
detect2("My name is Hans.", auth_key = "my_key")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.