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

jqueguiner / words2num2 / 30247179635
59%

Build:
DEFAULT BRANCH: main
Ran 27 Jul 2026 07:45AM 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:43AM UTC coverage: 59.459%. Remained the same
30247179635

push

github

web-flow
feat(core): add "digits" mode for spoken digit-by-digit sequences (#6)

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.

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

Pure-Rust core (words2num2-core), language-agnostic, non-breaking, unit
tested. Limitation: numeric value type collapses a leading zero.

Co-authored-by: jlqueguiner <jlq@gladia.io>

44 of 74 relevant lines covered (59.46%)

3.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.11 - 30247179635.1 27 Jul 2026 07:47AM UTC 6
59.46
GitHub Action Run
2 3.14 - 30247179635.2 27 Jul 2026 07:47AM UTC 6
58.9
GitHub Action Run
3 3.12 - 30247179635.3 27 Jul 2026 07:47AM UTC 6
59.46
GitHub Action Run
4 3.13 - 30247179635.4 27 Jul 2026 07:47AM UTC 6
59.46
GitHub Action Run
5 3.15 - 30247179635.5 27 Jul 2026 07:47AM UTC 6
58.9
GitHub Action Run
6 3.10 - 30247179635.6 27 Jul 2026 07:47AM UTC 6
59.46
GitHub Action Run
Source Files on build 30247179635
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2108333c on github
  • Prev Build on main (#29639042259)
  • Next Build on main (#30293610624)
  • 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