detect: Detect the language of a text using the official DeepL Translator API
Description
detect detects the language of a text using the official DeepL Translator API. English, German, French,
Spanish, Italian, Dutch and Polish are currently available. To use this service, an authentication key is required.
Usage
detect(text, auth_key = "your_key")
Arguments
text
text to be translated. Only UTF8-encoded plain text is supported. May contain multiple sentences.
The request size should not exceed 30kbytes.
auth_key
DeepL authentication key which provides access to the API.