Learn R Programming

deeplr (version 1.0.0)

detect2: Detect the language of a text using DeepL

Description

detect2 detects the language of a text using the undocumented JSON-RPC DeepL API. English, German, French, Spanish, Italian, Dutch and Polish are currently available. No authentication key is required to use this service.

Usage

detect2(text)

Arguments

text

text to be translated. Must not exceed 5000 characters. Only UTF8-encoded plain text is supported. May contain multiple sentences.

Examples

Run this code
# NOT RUN {
detect2("My name is Hans.")

# }

Run the code above in your browser using DataLab