use case · multi-model · OPUS-MT EN→FR (107.47 MB) → OPUS-MT FR→EN (107.5 MB) · ~215 MB total · Apache-2.0

EN → FR → EN Round-Trip Consistency & Drift Detector

Verify English-to-French localization fidelity without a human bilingual reviewer (~215 MB combined across two isolated Web Workers): Stage 1 runs OPUS-MT EN→FR (107.47 MB q8 WASM, Apache-2.0), then Stage 2 reuses OPUS-MT FR→EN (../../opus-mt-fr-en/worker.js, 107.5 MB q8 WASM, Apache-2.0) to back-translate into English and measure live BLEU, chrF, word-overlap %, and lexical drift.

1 · Workflow models (~215 MB total · two isolated WASM workers)

Stage 1 · OPUS-MT EN→FR (107.47 MB)

Helsinki-NLP/opus-mt-en-fr → Xenova/opus-mt-en-fr · q8 WASM · Apache-2.0

Stage 2 · OPUS-MT FR→EN Verifier (107.5 MB)

Reuses ../../opus-mt-fr-en/worker.js · Xenova/opus-mt-fr-en · q8 WASM · Apache-2.0

2 · Round-Trip EN → FR → EN Consistency & Drift Pipeline

Curated English round-trip presets
Drop an English .txt or .md file here, paste via clipboard, or upload a local file:
ux-action

Prepare both workers above (or either stage independently) to run local EN→FR→EN round-trip verification.

Word overlap—
Sentence BLEU—
chrF score—
FR expansion—
Stage 1 / Stage 2 ms—
NaN count—

Stage 1 · Intermediate French (OPUS-MT EN→FR)

Waiting for Stage 1 (OPUS-MT EN→FR) translation…

Tokens: — · Latency: —

Stage 2 · Back-Translated English (OPUS-MT FR→EN)

Waiting for Stage 2 (OPUS-MT FR→EN) back-translation…

Tokens: — · Latency: —

Round-Trip Semantic Drift Diff (Original English vs Back-Translated English)

Original English

—

Back-translated English (drift highlighted)

—
Show the code — Reusing opus-mt-fr-en/worker.js for Stage 2 back-translation
Show the code — Smoothed BLEU-4, chrF & word-overlap round-trip drift metrics

Stage 1: Helsinki-NLP/opus-mt-en-fr → Xenova/opus-mt-en-fr (107.47 MB q8 WASM, Apache-2.0). Stage 2: Helsinki-NLP/opus-mt-fr-en → Xenova/opus-mt-fr-en (107.5 MB q8 WASM, Apache-2.0).