use case · wild · Spanglish, idioms, regional lexis & UI expansion lab · q8 WASM · 113.11 MB

Spanish Register, Idiom, Code-Switching & UI Expansion Stress Lab

Real-world localization breaks neat corpus assumptions. Probe Opus-MT EN→ES live across 6 stress scenarios: EN/ES Spanglish code-switching, idiomatic phrasal verbs, US vs LatAm/Castilian lexical cues, ambiguous gender/pronouns, technical acronyms, and UI button expansion % against a strict character budget.

1 · Opus-MT EN→ES worker (113.11 MB q8 WASM · Apache-2.0)

2 · Controlled A/B Stress Probe & UI Budget Checker

Select a stress probe (all 6 runnable individually or as a live empirical sweep)
Select a probe above to inspect SentencePiece fertility, word overlap, and Spanish character expansion %.

Arm A · Baseline

—
Waiting for probe…

Arm B · Stress Variant

—
Waiting for probe…

Prepare Opus-MT EN→ES above to run live Spanglish, idiom, regional lexis, and UI expansion stress probes.

SP fertility (A / B)—
ES expansion % (A / B)—
Word overlap—
UI budget check (B)—
NaN count—

3 · Empirical 6-Probe Stress Matrix

Click Run All 6 Stress Probes above to evaluate every English→Spanish edge case sequentially off the main thread and measure real SentencePiece fertility, overlap, expansion %, and NaN checks.

Live empirical stress matrix across 6 English-to-Spanish probes
Stress Probe Arm A Spanish Output Arm B Spanish Output Expansion % (B) Overlap · ms
Click "Run All 6 Stress Probes" above to populate the empirical matrix.

4 · Inspect Expansion Budget & Word-Diff Code

Show the code — Spanish UI text expansion % & character budget evaluator
Show the code — Unicode-aware Spanish LCS word-diff scorer