• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jqueguiner / words2num2 / 30334133279
59%
main: 59%

Build:
Build:
LAST BUILD BRANCH: fix-spoken-year-forms
DEFAULT BRANCH: main
Ran 28 Jul 2026 06:15AM UTC
Jobs 6
Files 6
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2026 06:13AM UTC coverage: 59.459%. Remained the same
30334133279

Pull #9

github

jqueguiner
Recover spoken "year" number forms in the reverse-table backend

The generic (non-en) backend only matched num2words' single canonical
spelling, so common spoken year readings raised "cannot parse":
  - two 2-digit groups: "neunzehn neunundneunzig" (de) = 1999
  - explicit hundred:    "dix-neuf cent quatre-vingt-dix" (fr) = 1990
  - glued hundred:       "nittonhundranittiosju" (sv) = 1997
  - spaced compound that num2words renders glued:
    "mille novecento ottantotto" (it) = 1988

Add, in words2num2-core:
  - hundred_word(lang): derive the hundred morpheme
    (cent/cento/hundert/honderd/hundra) from num2words(200..=900).
  - parse_year(lang, text): recover L*100+R (explicit or glued hundred)
    and two-group year readings through the existing reverse-table
    primitive, so no per-language grammar is needed.
  - additive hundreds in parse_scaled_inner ("novecento" 900 + 88),
    covering the vowel elision num2words applies when gluing.
  - a de-spaced retry in base_convert for glued canonicals.

Every fall-through is last-resort: a canonical number ("vingt trois" =
23) hits the table first and never reaches them. The rust suite (with
new year-form tests) and the 133 python tests pass.
Pull Request #9: Recover spoken "year" number forms in the reverse-table backend

44 of 74 relevant lines covered (59.46%)

3.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.13 - 30334133279.1 28 Jul 2026 06:17AM UTC 6
59.46
GitHub Action Run
2 3.15 - 30334133279.2 28 Jul 2026 06:17AM UTC 6
58.9
GitHub Action Run
3 3.12 - 30334133279.3 28 Jul 2026 06:17AM UTC 6
59.46
GitHub Action Run
4 3.11 - 30334133279.4 28 Jul 2026 06:17AM UTC 6
59.46
GitHub Action Run
5 3.10 - 30334133279.5 28 Jul 2026 06:17AM UTC 6
59.46
GitHub Action Run
6 3.14 - 30334133279.6 28 Jul 2026 06:17AM UTC 6
58.9
GitHub Action Run
Source Files on build 30334133279
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9
  • PR Base - main (#30294272209)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc