summaryrefslogtreecommitdiff
path: root/docs/src/reference
diff options
context:
space:
mode:
authorCharlie Root <root@dangofactory.local>2026-10-11 11:53:22 +0900
committerCharlie Root <root@dangofactory.local>2026-10-11 11:53:22 +0900
commita1035c2f2007846d3cf5d07047f47a30815838e6 (patch)
treea3785f9e2299ba80944a61f3a27757f6d0bcb3df /docs/src/reference
parentc4651ad8a13de198e3bcfe851d84679a97634b64 (diff)
downloadLunaticChat-a1035c2f2007846d3cf5d07047f47a30815838e6.tar.gz
LunaticChat-a1035c2f2007846d3cf5d07047f47a30815838e6.tar.bz2
LunaticChat-a1035c2f2007846d3cf5d07047f47a30815838e6.zip
feat(conversion): run anthy in-process through WebAssembly
Add a second engine for romaji-to-Japanese conversion that leaves the process alone: anthy, compiled to a WebAssembly module and executed in the JVM by Chicory's build-time AOT, so conversion needs no outbound request. anthy/ carries the module sources, the WASI shims, the reproducible build script, the committed AOT output and the dictionary (~23 MB, extracted into the plugin data folder on first start; an existing file is left alone). features.japaneseConversion.engine selects "google" or "anthy", and the anthy block adds dictionary, workDirectory and sentenceLevel. RomanjiConverter now sits on a KanjiConverter interface, so a whole message is handed to the engine at once - anthy segments and reorders a sentence instead of converting word by word - and the conversion cache is keyed by that sentence. The engine tests drive the real module, the dictionary tests cover the extraction, and everything else keeps running on the existing fakes.
Diffstat (limited to 'docs/src/reference')
0 files changed, 0 insertions, 0 deletions