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

jqueguiner / words2num2 / 25231307612
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: v0.2.3
DEFAULT BRANCH: main
Ran 01 May 2026 08:16PM UTC
Jobs 6
Files 128
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

01 May 2026 08:16PM UTC coverage: 86.897% (-1.3%) from 88.207%
25231307612

push

github

jqueguiner
Add auto-parse: currency + units + configurable separators

* converters/auto.py: auto_parse() and auto_parse_sentence() extract
  numeric values plus their unit from free-text expressions. Returns a
  Quantity dataclass with value, unit (canonical short), unit_long,
  kind, confidence, raw.
* formats.py: parse_number_string() with caller-overridable
  thousands/decimal separators, per-locale CLDR-style defaults for 50+
  locales, and an auto-detect heuristic when no hint is given.
* Currency: \$/€/£/¥/₹/₽/₩/₺ symbols + ISO codes (USD/EUR/...) as
  prefix or suffix; scale shortcuts (\$5m, \$1.5b, \$2.5t).
* Units: length (mm/cm/dm/m/km/in/ft/yd/mi/nm/µm), mass (mg/g/kg/t/lb/oz),
  temperature (°/°C/°F/K), time (ms/s/min/h/d), volume (ml/cl/dl/L/gal),
  percent. Word-form aliases for English ('forty-two kg' works).
* Disambiguation: prefer={"m": "mile"} overrides ambiguous unit tokens.
* Sentence mode preserves punctuation, adds expand=True to render the
  long unit form ('12.5 dollar' vs '12.5 USD').
* 55 new tests; full suite is 114 passing.

222 of 268 new or added lines in 3 files covered. (82.84%)

955 of 1099 relevant lines covered (86.9%)

5.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
30
83.52
words2num2/converters/auto.py
16
80.95
words2num2/formats.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 25231307612.1 01 May 2026 08:17PM UTC 128
86.82
GitHub Action Run
2 3.11 - 25231307612.2 01 May 2026 08:17PM UTC 128
86.82
GitHub Action Run
3 3.10 - 25231307612.3 01 May 2026 08:17PM UTC 128
86.82
GitHub Action Run
4 3.8 - 25231307612.4 01 May 2026 08:17PM UTC 128
86.9
GitHub Action Run
5 3.13 - 25231307612.5 01 May 2026 08:17PM UTC 128
86.82
GitHub Action Run
6 3.9 - 25231307612.6 01 May 2026 08:17PM UTC 128
86.9
GitHub Action Run
Source Files on build 25231307612
  • Tree
  • List 128
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2a699819 on github
  • Prev Build on main (#25224994686)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc