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

jqueguiner / words2num2 / 30246450785
59%
main: 59%

Build:
Build:
LAST BUILD BRANCH: fix-spoken-year-forms
DEFAULT BRANCH: main
Ran 27 Jul 2026 07:33AM 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 07:31AM UTC coverage: 59.459%. Remained the same
30246450785

Pull #5

github

jqueguiner
feat(core): add "digits" mode for spoken digit-by-digit sequences

Cardinal parsing mis-handles digit-by-digit spellings — "two seven five"
-> 14, "seven eight three one eight" -> 27 — yet dictated house numbers,
zip codes and phone-style runs are commonly spelled this way (observed in
ASR transcripts of spoken postal addresses).

Add Converter::to_digits and a "digits" conversion type: each whitespace
token of a run must be a single-digit number word (0-9) in the target
language (via the existing per-language cardinal converter); the run is
concatenated instead of summed. Any non-digit or 10+ token declines, so the
sentence walker falls back to its longest cardinal parse — a genuine
cardinal is never turned into a digit string.

  words2num_sentence("Two seven five", "en", "digits")            -> "275"
  words2num_sentence("one eight nine zero zero one one", ...)     -> "1890011"
  words2num_sentence("sieben acht drei", "de", "digits")          -> "783"
  words2num_sentence("sixty-one hundred Main St", "en", "digits") -> unchanged

Pure-Rust core change (words2num2-core), language-agnostic, non-breaking
(new opt-in type; passes through the thin PyO3 binder unchanged), unit
tested. Limitation: the numeric value type collapses a leading zero.
Pull Request #5: feat(core): "digits" mode for spoken digit-by-digit sequences

44 of 74 relevant lines covered (59.46%)

3.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.12 - 30246450785.1 27 Jul 2026 07:34AM UTC 6
59.46
GitHub Action Run
2 3.10 - 30246450785.2 27 Jul 2026 07:34AM UTC 6
59.46
GitHub Action Run
3 3.14 - 30246450785.3 27 Jul 2026 07:34AM UTC 6
58.9
GitHub Action Run
4 3.13 - 30246450785.4 27 Jul 2026 07:34AM UTC 6
59.46
GitHub Action Run
5 3.11 - 30246450785.5 27 Jul 2026 07:34AM UTC 6
59.46
GitHub Action Run
6 3.15 - 30246450785.6 27 Jul 2026 07:34AM UTC 6
58.9
GitHub Action Run
Source Files on build 30246450785
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #5
  • PR Base - main (#29639042259)
  • 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