How o24s/haqumei works
Haqumei is a Japanese grapheme-to-phoneme library. Its principal workflow accepts text through the Rust API, runs a frontend to obtain linguistic features, and exposes phoneme, reading, prosody, and structured word-analysis results. Separate capabilities include IPA conversion, reading candidates, English and unknown-kanji fallbacks, a CLI, and Python bindings. The graph reflects documented behavior and the shown API/frontend connection; unsampled implementation details are grouped conservatively rather than given speculative call chains.
Main entry points: lib.rs Rust G2P API · postprocess.rs Reading postprocess · main.rs Command-line tool · open_jtalk.rs OpenJTalk frontend
Components 14
User Interfaces
- Rust G2P API
haqumei/src/lib.rs - Command-line tool
haqumei-cli/src/main.rs - Python bindings
haqumei-python/src/pyhaqumei.rs
Text Analysis
- OpenJTalk frontend
haqumei/src/open_jtalk.rs - Reading postprocess
haqumei/src/postprocess.rs - Context reading
haqumei/src/postprocess/context_reading/prepare.rs - G2P options
haqumei/src/options.rs
Pronunciation Outputs
- Reading candidates
haqumei/src/candidates.rs - Phoneme inventory
haqumei/src/phoneme.rs - IPA transcription
haqumei/src/ipa.rs - Prosody and mapping
haqumei/src/prosody.rs
Reading Fallbacks
- English kana fallback
haqumei-kanalizer/src/lib.rs - Unknown-kanji fallback
haqumei/src/postprocess/unknown_kanji.rs
Other components
- Text users
Connections 10
- Text users → Rust G2P API: submit text
README.md - Text users → Command-line tool: process text
README.md - Rust G2P API → OpenJTalk frontend: runs frontend
haqumei/src/lib.rs - Rust G2P API → Reading postprocess: applies postprocessing
haqumei/src/lib.rs - Reading postprocess → Context reading: prepares readings
- Rust G2P API → Reading candidates: provides candidates
haqumei/src/lib.rs - Rust G2P API → IPA transcription: provides IPA
README.md - Rust G2P API → Prosody and mapping: provides prosody
README.md - Rust G2P API → English kana fallback: uses English fallback
README.md - Rust G2P API → Unknown-kanji fallback: supports fallback
README.md