DeepL::Write - check and edit texts via the www.deepl.com service

Scraper overview
Fast, up to 1600 requests per minute, multithreaded text editor via the DeepL service. This scraper allows you to edit any volume of text in automatic mode. The scraper automatically detects the source language of the content. DeepL Write is capable of processing colossal amounts of text without consuming many resources.

Collected data
- Edited text (
$corrected) - Source text language (
$detected) - Text variants (
$variants): the same text in a different style
Capabilities
- Choice of editing language
- Automatic language detection
Limitations
- Supported languages: German, English (British and American), French, Spanish, Italian, Portuguese (European and Brazilian), Japanese, Chinese (Simplified), Korean, as well as automatic language detection (Auto). DeepL Write does not support the Russian language.
- If the selected language or style is not supported by DeepL Write, the scraper immediately logs this and does not retry the request.
- For Japanese, Chinese, and Korean languages, the writing style cannot be selected.
- Only one tone (Text style) is applied per request: if multiple are selected, the first one is used.
Use cases
- Text editing
- Text deduplication
Queries
You should specify any text for editing as queries, for example:
Animals are foscinating creatures. They come in all shapes and sizes, from tiny mouse to ginormous elephent. The lion is known as the king of the jungel, with its majestic mane and ferociuos roar. It hunts its pray with stratagy and precission.
Output results examples
A-Parser supports flexible results formatting thanks to the built-in Template Toolkit, which allows it to output results in any form, as well as in structured formats like CSV or JSON
Default output
Result format:
$corrected\n
Example result:
Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with his majestic mane and ferocious roar. Er jagt seine Beute mit Strategie und Präzision.
Outputting a specific language and edited text to a CSV table
Result format:
[% tools.CSVline(detected, corrected) %]
Example result:
"Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with his majestic mane and ferocious roar. Er jagt seine Beute mit Strategie und Präzision."
Saving in SQL format
Result format:
[% "INSERT INTO text VALUES('" _ query _ "', '"; detected _ "', '"; corrected _ "')\n"; %]
Example result:
INSERT INTO text VALUES('Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.', 'EN', 'Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.')
Dump results to JSON
Common result format:
[% IF notFirst;
",\n";
ELSE;
notFirst = 1;
END;
obj = {};
obj.query = query;
obj.detected = p1.detected;
obj.corrected = p1.corrected;
obj.json %]
Initial text:
[
Final text:
]
Example result:
[{"corrected":"Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.","query":"Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.","detected":"EN"}]
To make the "Prepend text" and "Append text" options available in the Task Editor, you need to activate "More options".
Possible settings
| Parameter | Default value | Description |
|---|---|---|
| Language | English (British) | Editing language (in some cases translates text to the specified language): German, English (British), English (American), Auto, French, Spanish, Italian, Portuguese (European), Portuguese (Brazilian), Japanese, Chinese (Simplified), Korean |
| Writing style | Writing style | |
| Text style | Text tone (only the first selected one is applied per request) | |
| Only corrections | ☐ | Correction only |