French Text Preprocessor
object FrenchTextPreprocessor
Intelligent French text preprocessor that normalizes text before TTS synthesis.
Handles common French-specific patterns that Android TTS engines often mispronounce:
Abbreviations (M. -> Monsieur, Mme -> Madame, etc.)
Ordinal suffixes (1er -> premier, 2ème -> deuxième, etc.)
Time formats (14h30 -> 14 heures 30)
Units with correct plural forms (3 km -> 3 kilomètres)
Roman numerals in context (Louis XIV -> Louis quatorze)
Currency symbols (15€ -> 15 euros)
Percentage signs (50% -> 50 pourcent)