Open
Conversation
added 14 commits
March 29, 2026 18:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add French (fr-fr) language support
This PR adds complete French language support following the same structure
as the existing Italian (it-it) implementation.
Tools used
Claude Code Pro for implementation
Google Gemini in Android Studio to verify code compilation
Files added
Resources (
config/fr-fr/):tokenizer.json— Tokenizer with all French number words (0–99 includingthe irregular 70–79 and 80–99 forms), ordinals, months, weekdays, duration
words, and date/time tokens
date_time.json— Date/time formatting with French-specificdecade_formatrules covering soixante-dix (70), quatre-vingts (80), etc.
date_time_test.json— Year/date/date-time formatting tests*.wordfiles — Translations for duration unit words (seconde, minute,heure, jour and plurals)
Source (
lang/fr/):FrenchFormatter.kt— Number pronouncer implementing French-specificsubHundred logic (soixante-dix, quatre-vingts) and ordinal suffixes (-ième,
with special cases for cinq→cinquième, neuf→neuvième, etc.)
FrenchNumberExtractor.kt— Number parser with customnumberLessThan1000Frhandling space-separated forms like "soixante dix-sept" (70–79) and
"quatre vingt" (80+)
FrenchDateTimeExtractor.kt— Date/time parser including "moins le quart"(quarter to) support via
special_minute_beforeFrenchParser.kt— Top-level parser wiring the above componentsModified:
ParserFormatterBuilder.kt— Registered"fr"localeKey implementation notes
(e.g.
soixante-dix-sept) and space-separated forms are handled.provides pre-built hyphenated forms; the extractor handles the
space-separated case.
apply -ième with phonetic adjustments (cinq+u, neuf→v, drop final e).
approach as Italian).