Skip to content

Seerban/recursive_translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rectrans

Rectrans is a python command-line tool that recursively translates text using deep_translator causing broken or changed meaning.

Installation

git clone https://github.com/seerban/recursive_translator

cd recursive_translator

# recommended with pipx
sudo apt install pipx
pip install .

Usage

usage: rectrans.py [-h] [-n NUMBER] [-s] [-S SEED] [-l LANG] [-t TARGET] [-v] [-V] [text]

positional arguments:
  text                  Text to translate

options:
  -h, --help            show this help message and exit
  -n NUMBER, --number NUMBER
                        Number of times to translate
  -s, --show            Show which languages are being used.
  -S SEED, --seed SEED  Seed for random selection, 0 means randomized.
  -l LANG, --lang LANG  Default language
  -t TARGET, --target TARGET
                        Target language
  -v, --verbose         Show all translations
  -V, --version         rectrans version

Examples

$rectrans -s "Life is like a box of chocolates; you never know what you're gonna get."
en->lao->slovenian->sundanese->en
Life is like a brown box; You don't know what will be presented.
$rectrans -v -n 2  "The apple doesn't fall far from the tree."
The apple doesn't fall far from the tree.
Abaaboo muka irraa fagoo hin bu'u.
O apu e le mamao ese mai le laau.
Apples aren't too far from the tree.

Requirements

About

CLI Tool that recursively translates resulting in distorted meaning.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages