A zero-dependency Python CLI and library that translates English text into the fictional Monsu language using a word dictionary. - GitHub - rkriad585/EMTranslator: A zero-dependency Python CLI and library that translates English text into the fictional Monsu language using a word dictionary.
Framer AI AgentsDesign and publish professional sites with AI
Promoted
Maker
đ
emtranslator â English to Monsu translator
A zero-dependency Python CLI & library that translates English text
into the fictional Monsu language using a word dictionary.
The pitch: translating is usually a heavyweight problem â APIs, network
calls, dependencies. I wanted the opposite. One pip install, no
dependencies, works offline, works everywhere Python 3.8+ runs.
What it does:
⢠Word-by-word translation from a built-in 90-word dictionary
⢠Reverse mode (Monsu â English) with a single flag
⢠Punctuation, whitespace, and unknown words pass through untouched
⢠Case-insensitive lookup that preserves your original casing
⢠Extend the dictionary from the CLI (`emtrans add`) or the API
(`add_word()`), persisted to a TOML config file
⢠`--json` output that reports words missing from the dictionary
Zero-dependency philosophy:
The TOML reader/writer is hand-rolled. No requests, no click, no
typer, no requests to the network â just the standard library.
Use it as a CLI:
emtrans "Hello, world!"
emtrans --reverse "monsu_1 monsu_2"
echo "good morning" | emtrans
Or as a library:
from emtranslator import Translator
t = Translator()
t.translate("Hello world")
Docker image, full docs (mkdocs), and a 32-test suite included.
MIT licensed.
â https://github.com/rkriad585/EMT...