use case · wild · idioms, negations, RTL technical bidi, homographs & truncation · q8 WASM · 117.60 MB

Idioms, Negations, RTL Technical Bidi & Truncation Lab

Push Opus-MT EN→AR into real-world failure modes: English idioms, nested negations, RTL technical bidi strings (URLs, units, ISO dates, proper nouns), homographs, and max_new_tokens / 512-token truncation. Every outcome below is measured live on-device — failures and literal slips are surfaced honestly.

1 · Opus-MT EN→AR worker (117.60 MB q8 WASM · Apache-2.0)

2 · Controlled Edge-Case Stress Probe

Select a stress scenario (run individually or evaluate all 5 in the matrix below)
Select a stress probe above to inspect SentencePiece token count, RTL bidi mixing, truncation status, and Arabic output.
—

Measured Arabic RTL Output

—
في انتظار التشغيل…

Prepare Opus-MT EN→AR above to run live idiom, negation, technical bidi, homograph, and truncation stress tests.

Src → Tgt tokens—
Arabic / Latin chars—
Truncation status—
Latency—
NaN count—

Real SentencePiece Source Subwords

Run a stress probe to inspect SentencePiece tokens.

3 · Empirical 5-Probe Stress Matrix

Click Run All 5 Stress Probes above to evaluate every edge case sequentially off the main thread using each scenario's target budget (note Probe 5 tests max_new_tokens=48 truncation).

Live empirical stress matrix across idioms, negations, RTL technical bidi, homographs, and truncation
Stress Scenario Arabic RTL Output Tokens (in→out) Script · Trunc Latency
Click "Run All 5 Stress Probes" above to populate the empirical matrix.

4 · Inspect Target Tagging & Arabic Script Audit Code

Show the code — Sentence-initial >>ara<< control-tag preparation
Show the code — Arabic RTL script, hamza/ة, digit & bidi Latin analyzer