use case · wild · compaction, loanwords & idiom stress lab · q8 WASM · 113.11 MB · Apache-2.0

Chinese Compaction, Loanwords, Chequered Terms & Idiom Stress Lab

Probe six real-world English-to-Chinese edge cases empirically on-device: UI width compaction vs verbose copy, preserved vs transliterated acronyms (WebGPU / ONNX / OPFS), figurative English idioms, passive voice & polysemy, currencies & scale words, and negation scope — plus split vs unsplit long-paragraph decoding.

1 · Opus-MT EN→ZH worker (113.11 MB q8 WASM)

2 · Lab A — Six EN→ZH Linguistic Stress Probes (A vs B)

Select an English-to-Chinese stress probe pair

Linguistic probe note: —

Prepare Opus-MT EN→ZH above to probe compaction, acronyms, idioms, voice, numbers, and negation live.

Probe A

—

Compaction: — · Tokens: — · Latency: —

Probe B

—

Compaction: — · Tokens: — · Latency: —

3 · Lab B — Long-Paragraph Sentence-Split vs Unsplit Single-Pass

Feed a multi-sentence English paragraph into MarianMT as one unsplit chunk versus splitting cleanly at sentence boundaries. Highlighted characters reveal clauses altered or dropped when decoded unsplit.

Click "Run Split vs Unsplit Test" once the model is ready.

Sentences detected—
Split Hanzi—
Unsplit Hanzi—
Coverage ratio—
Char overlap—
NaN count—

Sentence-Split Sequential Decoding

—

Latency: — · Tokens: —

Unsplit Single-Pass Decoding

—

Latency: — · Tokens: —

Model: Helsinki-NLP/opus-mt-en-zh → Xenova/opus-mt-en-zh (113.11 MB q8 ONNX, Apache-2.0).