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

jqueguiner / words2num2 / 30294244405
59%
main: 59%

Build:
Build:
LAST BUILD BRANCH: fix-spoken-year-forms
DEFAULT BRANCH: main
Ran 27 Jul 2026 06:34PM 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

27 Jul 2026 06:32PM UTC coverage: 59.459%. Remained the same
30294244405

push

github

jqueguiner
feat(core): plural/connector/long-scale support for scaled cardinals

Follow-up to the multi-scale composition. A round-trip sweep (num2words →
words2num over values above the reverse table) surfaced three more bug classes
in the reverse-table locales:

- plural scale words: "deux millions" left "million" unmatched (only the
  singular was derived);
- connectors inside a run: "sesenta y nueve mil ocho", "... mil e oito",
  "... de mii" broke at the joining word;
- long-scale billions: es/pt "mil millones"/"mil milhões" (10^9) mis-mapped
  its last token to 10^9.

Fixes:
- scale_words now samples n/2n/5n of 10^3/10^6/10^9 to capture singular, plural
  and the Slavic genitive plural (tysięcy/тысяч), smallest-magnitude-first so
  the collision guard pins each token to its true scale;
- includable connector words per locale let the sentence walker grow a run
  across y/e/et/i/und/en/și/de;
- fragment edges are connector-trimmed before lookup.

Round-trip now clean for es/pt/ca/pl/ru/uk/sr (were broken); fr/en unchanged
except where blocked by orthography (fr cent-plural, en comma rendering).
Agglutinative locales (de/nl/sv/…) still need sub-word segmentation — untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

44 of 74 relevant lines covered (59.46%)

3.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.15 - 30294244405.1 27 Jul 2026 06:36PM UTC 6
58.9
GitHub Action Run
2 3.11 - 30294244405.2 27 Jul 2026 06:36PM UTC 6
59.46
GitHub Action Run
3 3.14 - 30294244405.3 27 Jul 2026 06:36PM UTC 6
58.9
GitHub Action Run
4 3.13 - 30294244405.4 27 Jul 2026 06:36PM UTC 6
59.46
GitHub Action Run
5 3.10 - 30294244405.5 27 Jul 2026 06:36PM UTC 6
59.46
GitHub Action Run
6 3.12 - 30294244405.6 27 Jul 2026 06:36PM UTC 6
59.46
GitHub Action Run
Source Files on build 30294244405
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 98c4930a on github
  • Prev Build on fix-scale-cardinals (#30292602150)
  • 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