pronounce_number misspells de "einstausend", it "centootto" and sv "etttusen "
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- localization
Research direction
Start by running the reproduce snippet from the issue, then read the cardinal writer paths in ovos_number_parser/numbers_de.py, numbers_it.py and numbers_sv.py to find where the unit word is joined to the scale word and where Swedish leaves a trailing space. Use _pronounce_rbnf in the same package as the reference engine to compare outputs, and check the existing tests for these languages for the fixtures already covering tens/hundreds composition. Done means the seven rows in the tables match, e.g. einhunderteintausend, centotto and ettusen with no trailing space, with no regressions in the other numbers.
Written by the indexing model from the issue text.
Description
🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting. Every row was run on origin/dev d1e5321. The expected column is the output of the CLDR RBNF rules that this package already ships (
_pronounce_rbnf), used as a second engine.
pronounce_number misspells some cardinals in de, it and sv. It also writes a trailing space after Swedish thousands.
Observed
| lang | number | pronounce_number |
|---|---|---|
| de | 101000 | 'einhunderteinstausend' |
| de | 201000 | 'zweihunderteinstausend' |
| it | 108 | 'centootto' |
| it | 1108 | 'millecentootto' |
| sv | 31000 | 'trettioetttusen ' |
| sv | 81000 | 'åttioetttusen ' |
| sv | 1000 | 'ettusen ' |
Expected
| lang | number | expected (CLDR RBNF) |
|---|---|---|
| de | 101000 | 'einhunderteintausend' |
| de | 201000 | 'zweihunderteintausend' |
| it | 108 | 'centotto' |
| it | 1108 | 'millecentotto' |
| sv | 31000 | 'trettioettusen' |
| sv | 81000 | 'åttioettusen' |
| sv | 1000 | 'ettusen' |
In German, "eins" loses its "s" before "tausend", as it does in "eintausend" (which the writer gets right). In Italian, "cento" drops its last vowel before "otto", as it does before "ottanta" ("centottanta" is right). In Swedish, "ett" and "tusen" join with two t's, as in "ettusen" (right apart from the space).
Reproduce
from ovos_number_parser import pronounce_number
print(repr(pronounce_number(101000, "de")), repr(pronounce_number(108, "it")), repr(pronounce_number(31000, "sv")))
Where
The de, it and sv cardinal writers: ovos_number_parser/numbers_de.py, numbers_it.py and numbers_sv.py. The rows were found by a comparison of every writer language with CLDR RBNF over 1,508 numbers.
- Dominant language
- Python
- Stars
- 4
- Forks
- 5
- Avg merge
- 5h 40m
- Merged PRs (30d)
- 97
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenVoiceOS/ovos-number-parser
-
Bosnian 11 and 16 are spelled "jedenaest" and "šestnaest"; the words are "jedanaest" and "šesnaest"Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenVoiceOS/ovos-number-parser#589 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
OpenVoiceOS/ovos-number-parser#573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
OpenVoiceOS/ovos-number-parser#559 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 58/100
OpenVoiceOS/ovos-number-parser#576 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
OpenVoiceOS/ovos-number-parser#553 ·
Maintainers usually reply within 1 day
All issues in OpenVoiceOS/ovos-number-parser
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gke-labs/kube-agents#7441 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
open-webui/open-webui#35142 · 1 comment ·
Maintainers usually reply within 1 day