How toca-toca/ithkuil-translator works
This is a bidirectional English ↔ New Ithkuil IV translator. The main forward workflow parses English into a validated semantic plan, compiles formatives into Ithkuil morphology, then renders a schematic SVG/PNG; reverse mode decompiles Ithkuil into literal English, with optional LLM phrasing. The graph preserves the documented parser backends and the compiler’s morphology subsystems. Some internal call details are not visible in the excerpts, so only documented or indexed relationships are shown; optional integrations are dashed where wiring is not established.
Main entry points: cli.py Translator CLI · parser.py Semantic Parsers · morphology.py Morphological Compiler · decompiler.py Morphological Decompiler
Components 17
User Interface
- Translator CLI
src/ithkuil_translator/cli.py
Semantic Parsing
- Semantic Parsers
src/ithkuil_translator/parser.py - Translation Schemas
src/ithkuil_translator/schemas.py
Morphology
- Morphological Compiler
src/ithkuil_translator/morphology.py - Roots and Affixes
src/ithkuil_translator/lexicon.py - Lexicon Data
src/ithkuil_translator/data - Ca and Vr Forms
src/ithkuil_translator/ca.py - Category Affixes
src/ithkuil_translator/categories.py - Register Marking
src/ithkuil_translator/register.py
Translation Outputs
- Morphological Decompiler
src/ithkuil_translator/decompiler.py - Schematic Renderer
src/ithkuil_translator/svg_script.py
Other components
- User
- llama.cpp
- Ollama
- Gemini API
- English Result
- Ithkuil Result
Connections 20
- User → Translator CLI: provides text
README.md - Translator CLI → Semantic Parsers: selects backend
src/ithkuil_translator/cli.py - Semantic Parsers → llama.cpp: queries
README.md - Semantic Parsers → Ollama: queries
README.md - Semantic Parsers → Gemini API: queries
README.md - Semantic Parsers → Translation Schemas: validates plan
README.md - Translator CLI → Morphological Compiler: compiles plan
README.md - Morphological Compiler → Roots and Affixes: looks up forms
README.md - Roots and Affixes → Lexicon Data: loads entries
src/ithkuil_translator/lexicon.py - Morphological Compiler → Ca and Vr Forms: encodes Ca and Vr
src/ithkuil_translator/morphology.py - Morphological Compiler → Category Affixes: resolves categories
src/ithkuil_translator/morphology.py - Morphological Compiler → Register Marking: applies register
src/ithkuil_translator/morphology.py - Translator CLI → Schematic Renderer: renders compiled forms
README.md - Schematic Renderer → Ithkuil Result: writes SVG or PNG
README.md - Translator CLI → Ithkuil Result: prints translation
README.md - Translator CLI → Morphological Decompiler: decodes input
README.md - Morphological Decompiler → Roots and Affixes: looks up forms
src/ithkuil_translator/decompiler.py - Morphological Decompiler → English Result: produces breakdown
README.md - Translator CLI → Semantic Parsers: polishes English
src/ithkuil_translator/cli.py - Translator CLI → English Result: prints translation
README.md