multi-model · Opus-MT EN→ES (113.11 MB q8 · Apache-2.0) → Multilingual MiniLM-L12-v2 (118 MB q8 · Apache-2.0)

EN→ES Translation + Cross-Lingual Semantic Fidelity Auditor

Stage 1 (Xenova/opus-mt-en-es, 113.11 MB WASM q8, Apache-2.0) translates English into Spanish. Stage 2 (Xenova/paraphrase-multilingual-MiniLM-L12-v2, 118 MB WASM q8, Apache-2.0, reusing shared ../../opus-mt-en-romance/embed-worker.js) embeds both the English source and the Spanish output into one shared 384-d cross-lingual vector space to compute live cos(EN, ES) fidelity and a Pass/Review verdict (~231.1 MB combined, 100% offline).

1 · Two Independent On-Device Models (~231.1 MB Combined)

Stage 1 · Opus-MT EN→ES (113.11 MB WASM q8)

Xenova/opus-mt-en-es · translation · Apache-2.0

Stage 2 · Multilingual MiniLM-L12-v2 (118 MB WASM q8)

Xenova/paraphrase-multilingual-MiniLM-L12-v2 · feature-extraction · 384-d · Apache-2.0

2 · Translate English → Spanish & Audit Cross-Lingual Fidelity

Clear technical prose typically preserves high cross-lingual cosine fidelity (0.80+ Pass).
cos(EN, ES)—
Verdict—
Stage 1 / Stage 2 ms—
Embedding dim—
NaN count—

3 · Cross-Lingual Handoff & Calibration Results

Stage 1 · Spanish Translation

Waiting
Run Stage 1 (Opus-MT EN→ES) above to generate Spanish text.

Stage 2 · Cross-Lingual Fidelity Meter

Waiting

Cosine threshold calibration: ≥ 0.80 Pass (meaning preserved) · 0.65–0.799 Review (moderate drift) · < 0.65 Review (semantic/idiomatic drift).

Audit history across English-to-Spanish translations scored by Multilingual MiniLM-L12-v2
Preset / Run English Source Spanish Output cos(EN, ES) Verdict S1 / S2 ms
Initialise both models above and run the pipeline to audit EN→ES semantic fidelity.

4 · Inspect Cross-Lingual Embedding Client & Cosine Math

Show the code — Off-main-thread Multilingual MiniLM Stage 2 FIFO client
Show the code — Cross-lingual 384-d cosine similarity scorer