Home Features Demos Download Installation User Manual Developer Manual Relation function Credits

Login

Text Style checker

Translates German, French, Italian and Spanish texts into English and back and shows the differences. If the text is English, it is translated into German and back.
Proof of concept
https://schulesocialmedia.com/2021/11/28/deepl-als-korrekturwerkzeug-im-erstsprachenunterricht/


Input

text

language

Notes


The translate function uses the DeepL API.
Privacy notice: To limit costs of subsequent texts, the translate function caches texts on the server.

Code

input text_textarea, language_select "de|en|es|fr|it"
if language == "en"
set lang2 = "de"
else
set lang2 = "en"
end if
set texten = translate(text,language,lang2)
set text1 = translate(texten,lang2,language)
set d = diff(text, text1)
echo nowiki(d)
echo "Original text"
echo text
echo "Revised text"
echo text1