jiwer-compatible WER normalizer with number, email, URL, filler, and symbol normalization for voice AI evaluation in English, German, and French
pip install extended-wer-normalizer==0.8.0 Copy PIP instructions
jiwer-compatible text normalizer for Word Error Rate (WER) evaluation in voice AI.
Extends jiwer's built-in transforms with normalizations that matter for real-world ASR evaluation: phone numbers, emails, URLs, currency, percentages, ordinals, filler words, stuttering, and US/UK spelling variants.
extended-wer-normalizer 'Call 0176 or email info@example.com' # → call 0 1 7 6 or email info at example dot com extended-wer-normalizer 'Hr. Müller, am 1. Januar' --language de # → herr müller am erste januar cat transcripts.txt | extended-wer-normalizer -l fr # stdin, line by line extended-wer-normalizer --file transcripts.txt -l fr > normalized.txt extended-wer-normalizer --describe -l de # ordered transform list extended-wer-normalizer --list-languages # de, en, fr Exit codes: 0 success, 1 runtime error (e.g. unreadable file), 2 usage error (missing or conflicting inputs). Diagnostics go to stderr; stdout carries only normalized text, so the CLI composes with | diff, | wc -l, etc.
Every normalization is a jiwer.AbstractTransform subclass — compose them freely:
import jiwer from extended_wer_normalizer.transforms import NormalizeEmails, ExpandDigitRuns pipeline = jiwer.Compose([ NormalizeEmails(), ExpandDigitRuns(), jiwer.ToLowerCase(), jiwer.RemovePunctuation(), jiwer.ReduceToListOfListOfWords(), ]) wer = jiwer.wer("info at example dot com", "info@example.com", hypothesis_transform=pipeline) Use the pre-built pipeline with jiwer.wer. The pipelines return strings, so append jiwer.ReduceToListOfListOfWords() — jiwer requires a transform that ends in word lists:
The English pipeline applies transforms left-to-right in a single pass:
Full pipelines (with language-specific abbreviations, fillers, lexicons, and number/ordinal/percentage word forms via num2words) ship for English, German, and French. Pass any other language value for the minimal fallback (lowercase, intra-word hyphen split, punctuation and whitespace cleanup, repetition collapse).
from extended_wer_normalizer import normalize_for_wer # German: titles, fillers, ordinals, currency normalize_for_wer("Hr. Müller, am 1. Januar, ähm, ungefähr 50% Rabatt", language="de") # → "herr müller am erste januar ungefähr 5 0 prozent rabatt" # French: elision contractions, ordinals, comma-decimal currency normalize_for_wer("M. Dupont, le 1er janvier, c'est €5,99", language="fr") # → "monsieur dupont le premier janvier c est 5 euros 9 9 centimes" # Spanish, Italian, … fall through to the minimal pipeline normalize_for_wer("¡Hola, mundo!", language="es") # → "hola mundo" # Tune the repetition-collapse threshold (default 3 → collapse runs of 4+) normalize_for_wer("no no no", max_repeats=1) # collapse any 2+ run # → "no" Per-language pipelines are also exposed for direct use with jiwer.wer:
from extended_wer_normalizer.languages import get_language_data, supported_languages supported_languages() # ["de", "en", "fr"] get_language_data("de").abbreviations["hr."] # "herr" Quirks worth knowing Currency and percentages canonicalize to digits, not words. NormalizeCurrency/NormalizePercentages first verbalize amounts ($5.99 → five dollars ninety nine cents, 50% → fifty percent — the per-transform outputs shown in the table above), but the digit-normalization stage (CompoundSpokenNumbersToDigits, then ExpandDigitRuns) runs later in the pipeline and converts those number words back to split digits: the pipeline's final form is 5 dollars 9 9 cents / 5 0 percent. Written and spoken forms still converge to the same string, which is what WER fairness needs. The currency symbol may come before or after the amount (€5,99 or 5,99 €); when one sits between two numbers (5 € 20 Stück), the language's convention decides (after the amount in German and French, before it in English). A bare symbol with no amount becomes the unit name (in € → in euro). Spoken amounts may join the major and minor amounts with and/und/et ("five dollars and ninety nine cents"); the conjunction is dropped. A spoken amount that leaves out the minor unit ("five dollars ninety nine", "fünf Euro neunundneunzig") still does not match the written form — Whisper's and Gladia's normalizers don't handle that case either. Hyphenated compounds: intra-word hyphens split into spaces (fixed-term → fixed term), so hyphenated and spaced spellings of the same words score identically. Before 0.6.0 the hyphen was deleted (fixedterm), which penalized STTs that never emit hyphens — WER numbers are not comparable across that boundary. US/UK spelling variants: English canonicalizes British spellings to American (travelling → traveling, colour → color, centre → center), so dialect-only differences score zero. The 1,731-entry table is based on OpenAI Whisper's english.json (MIT) — the same table Gladia's normalizer ships — with a handful of documented corrections to entries that changed the word rather than only its spelling (upstream maps tonne → ton, philtre → filter) or that mapped American → British (see languages/en_spelling_variants.py). As with the hyphen change, WER numbers are not comparable across the boundary (introduced in 0.7.0). Thousands separators and decimals are language-specific. Digit grouping is removed first: , in English, . in German, a space, no-break space or . in French, and only for strict groups of three digits, so IPs, versions and dates are left alone. A remaining single separator between digits is a decimal and is spelled out with the language's word (point, komma, virgule), so 3.5 and three point five both normalize to 3 point 5, distinct from 35. Either . or , is accepted as the decimal separator in every language, as in currency and percentages. Consequences: 1.500 reads as fifteen hundred in German but one point five in English, and UK-style times (3.30) read as decimals rather than matching three thirty. WER numbers are not comparable across this change (introduced in 0.8.0). German ordinals: matched as 1- to 3-digit numbers followed by . and a word (e.g. "1. Januar" but not "Es war 1990." or "1.5 Liter"). 4+ digits and decimals are skipped to avoid false positives on years. French ordinals: matched as 1er, 1ère, 2e, 2es, 2ème, 2èmes, 2nde, 2nds, 2nd. num2words returns masculine forms (premier, deuxième); feminine variants like première or seconde are not produced. Contractions: jiwer.ExpandCommonEnglishContractions runs only for English. French has a custom ExpandFrenchElisions that splits j', l', d', n', s', m', t', c', qu', jusqu', lorsqu', puisqu', quoiqu' from the following word. German has no contraction step. German pluralization: most currency units stay invariant (fünf Euro, not fünf Euros). Project links Data verified by PyPI on Oct 27, 2026 Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Homepage Issues Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 27, 2026 Latest release Owner PyPI data Data sourced directly from PyPI's database. ai-coustics 1 maintainer PyPI data Data sourced directly from PyPI's database. jj-wohlgemuth Credits Author: ai-coustics
asr jiwer normalization speech recognition voice ai wer
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




