Learn R Programming

deeplr (version 1.0.0)

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.

Examples

Run this code
# NOT RUN {
detect("My name is Hans.", auth_key = "my_key")

# }

Run the code above in your browser using DataLab