Basics · Cased vs Diacritic-Stripped WordPiece & Script Fertility (139.32 MB WASM q8 · Apache-2.0)

Inside 6-Layer Cased WordPiece: Diacritics, Script Fertility & ## Splits

Compare Cased + Accented vs Lowercased + Diacritic-Stripped prompts across FR / ES / DE / PL / VI, measure Latin vs Cyrillic/CJK/Arabic token fertility in distilbert/distilbert-base-multilingual-cased (onnx-community/distilbert-base-multilingual-cased-ONNX, 139.32 MB WASM q8, Apache-2.0), and contrast whole-word vs ## continuation splits.

Why do_lower_case: false Matters: DistilmBERT retains uppercase initials and accents directly in its 119,547-piece vocabulary. Lowercasing German nouns or stripping accents in French, Spanish, Polish, and Vietnamese fragments whole words into ## subwords and shifts 6-layer cloze confidence.

1. Cased vs Lowercased Diacritic Preservation (FR / ES / DE / PL / VI)

Cased #1–
Stripped #1–
Top-1 prob shift–
Entropy delta–
## Subword delta–
NaN score check–

Cased & Accented Top-5 + WordPiece Chips

Run comparison above to inspect cased predictions.

Lowercased & Stripped Top-5 + WordPiece Chips

Run comparison above to inspect stripped predictions.
5-language cased vs diacritic-stripped comparison across FR, ES, DE, PL, and VI
Lang Cased #1 (Prob) Stripped #1 (Prob) Prob Shift ## Conts (Cased → Stripped) Entropy Delta
Click "Benchmark All 5 Languages" above to compare FR/ES/DE/PL/VI live.

2. Latin vs Cyrillic / CJK / Arabic Token Fertility Probe

Run the same semantic sentence across Latin (EN/FR/DE), Cyrillic (RU), Hanzi (ZH), and Arabic (AR) to inspect WordPiece fertility (tokens per word), ## continuation share, and entropy.

Scripts scored–
Latin mean fertility–
Non-Latin fertility–
Mean ## share–
Total [UNK] / NaN–
Total latency–
WordPiece token fertility, ## continuation ratio, entropy, and top-1 predictions across scripts
Script Prompt ([MASK]) Top-1 Fill Fertility (tok/word) ## Conts / UNK Entropy / ms
Initialize the model above to measure cross-script fertility.

3. Whole-Word vs Subword-Split (## Continuation) Sensitivity

Contrast a space-separated [MASK] slot against an inline prefix-attached slot (Haupt[MASK], l'[MASK]) to see how WordPiece switches to ## suffix candidates.

Whole-Word Top-5 (–)

Run comparison above.

Subword-Split Top-5 (–)

Run comparison above.

4. Inspect Diacritic & Script Fertility Analyzers

Show the code · distilbert-mbert-core.mjs — analyzeCaseDiacriticSensitivity()
Show the code · distilbert-mbert-core.mjs — analyzeScriptFertility()