Learn R Programming

deeplr (version 1.0.0)

pimp: Fix and improve texts using the official DeepL Translator API

Description

pimp translates a text into a help language and then back into the original language using the official DeepL Translator API. To use this service, an authentication key is required.

Usage

pimp(text, help_lang, 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.

help_lang

language used as a help language for reverse translation. Can be one of the following:

  • EN English

  • DE German

  • FR French

  • ES Spanish

  • IT Italian

  • NL Dutch

  • PL Polish

auth_key

DeepL authentication key which provides access to the API.

Examples

Run this code
# NOT RUN {
pimp("In former times I lived in Zurich", help_lang = "DE", auth_key = "my_key")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab