https://github.com/vsimko/deepl-fix-english
Use DeepL translator to fix English texts (through EN->DE->EN pipeline)
https://github.com/vsimko/deepl-fix-english
deepl deepl-translator english-grammar machine-translation shell-script
Last synced: 6 days ago
JSON representation
Use DeepL translator to fix English texts (through EN->DE->EN pipeline)
- Host: GitHub
- URL: https://github.com/vsimko/deepl-fix-english
- Owner: vsimko
- Created: 2017-09-29T14:56:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T06:27:19.000Z (over 8 years ago)
- Last Synced: 2025-11-24T04:05:04.562Z (7 months ago)
- Topics: deepl, deepl-translator, english-grammar, machine-translation, shell-script
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deepl-fix-english
Use DeepL translator to fix English texts (through EN->DE->EN pipeline)
# Requirements
- Some unix with shell (tested on Linux Mint)
- `jq` for parsing JSON (install using `sudo apt install jq`)
- `curl` for making POST request to deepl json rpc server (install using `sudo apt install curl`)
# Installation
Download the `deepl-fix-english.sh` file and make sure it is executable.
The easiest way is to clone the latest version from github as follows:
```sh
git clone --depth 1 https://github.com/vsimko/deepl-fix-english.git
cd deepl-fix-english
```
# Usage (short sentences)
For shorter texts use command line arguments
```sh
$ ./deepl-fix-english.sh Please translate this text
```
output
```
######################################################################## 100,0%
######################################################################## 100,0%
Please translate the following text
```
# Usage (larger texts)
**NOTE:** not implemented properly yet, see [issue #1](https://github.com/vsimko/deepl-fix-english/issues/1)
Multiline texts can be piped to the script through stdin as follows:
```sh
$ ./deepl-fix-english.sh
```
now you can write or copy-paste to console and hit ENTER and CTRL+D when finished:
```
This document contains multiple
lines and should also be translated
by DeepL without problems. (hit ENTER and CTRL+D)
######################################################################## 100,0%
######################################################################## 100,0%
This document contains several lines and should be easily translated by DeepL.
```
or from file
```sh
$ ./deepl-fix-english.sh < my_file_to_fix.txt
######################################################################## 100,0%
######################################################################## 100,0%
This document contains several lines and should be easily translated by DeepL.
```