Slugcat wawa translator built by Deepseek
- Python 100%
- Renamed wawa -> wawa.py so setuptools py-modules can find it - Fixed build-backend from nonexistent setuptools.backends._legacy:_Backend to the standard setuptools.build_meta |
||
|---|---|---|
| .gitignore | ||
| pyproject.toml | ||
| README.md | ||
| wawa.py | ||
slugcat wawa translator
A CLI tool that translates between English and the slugcat wawa code language.
Install
pip install -e .
Or just run it directly:
./wawa
Usage
Encode English → wawa (default mode):
cat file.txt | wawa
echo "hello world" | wawa
Decode wawa → English (-d or --decode):
cat file.txt | wawa -d
echo "wuwywu wuwowy wewawa wewawa wewawe" | wawa -d
Examples
$ echo "slugcat wawa" | wawa
wewiwi wewawa wewiwe wuwywi wuwowe wuwowi wewiwu wywu wewiwy wuwowi wewiwy wuwowi
$ echo "slugcat wawa" | wawa | wawa -d
slugcat wawa
How it works
Each character is converted to its Unicode code point, which is then represented in base-6 using six two-character wawa syllables as digits:
| Digit | Syllable |
|---|---|
| 0 | wa |
| 1 | wi |
| 2 | wu |
| 3 | we |
| 4 | wo |
| 5 | wy |
Characters are separated by spaces. Newlines are preserved for readable multi-line output.
License
MIT