Releases: gladiaio/words2num2
Release list
v0.3.3
Automated release built by maturin.
words2num2 is the Rust-powered inverse of num2words2: it parses
spoken-form numbers back to numeric values across 100+ languages.
Wheels embed the conversion core natively (~2-4 MB, no external
model files) and the package has no runtime dependencies.
pip install words2num2What's Changed
- fix(en): a tens word may not follow a smaller number (resolves #17 — "three sixty" is 3 60) by @jqueguiner in #21
- fix(rust): bump pyo3 0.23 -> 0.29 for RUSTSEC advisories by @jqueguiner in #13
- ci: test on PyPy 3.11 instead of 3.10 by @jqueguiner in #22
- fix: years and digit runs in sentence mode; es 'ciento' by @jqueguiner in #23
Full Changelog: v0.3.2...v0.3.3
v0.3.2
Automated release built by maturin.
words2num2 is the Rust-powered inverse of num2words2: it parses
spoken-form numbers back to numeric values across 100+ languages.
Wheels embed the conversion core natively (~2-4 MB, no external
model files) and the package has no runtime dependencies.
pip install words2num2What's Changed
- ci: cross-compile the Intel macOS wheel on macos-14 (unstall Release) by @jqueguiner in #4
- feat(core): "digits" mode for spoken digit-by-digit sequences by @jqueguiner in #6
- Compose multi-scale cardinals for reverse-table locales by @jqueguiner in #7
- Plural/connector/long-scale support for scaled cardinals by @jqueguiner in #8
- Recover spoken "year" number forms in the reverse-table backend by @jqueguiner in #9
- chore: point package metadata at gladiaio/words2num2 by @jqueguiner in #11
Full Changelog: v0.3.1...v0.3.2
v0.3.0
Automated release built by maturin.
words2num2 is the Rust-powered inverse of num2words2: it parses
spoken-form numbers back to numeric values across 100+ languages.
Wheels embed the conversion core natively (~2-4 MB, no external
model files) and the package has no runtime dependencies.
pip install words2num2What's Changed
- Port words2num2 to a Rust-powered self-contained binder by @jqueguiner in #1
New Contributors
- @jqueguiner made their first contribution in #1
Full Changelog: v0.2.3...v0.3.0
v0.2.3
words2num2 — inverse of num2words2
Convert spoken-form numbers back to numeric values across 100+
locales. Auto-generated release.
Installation
pip install words2num2Usage
from words2num2 import words2num, words2num_sentence
words2num("forty-two") # 42
words2num("one thousand two hundred") # 1200
words2num("quarante-deux", lang="fr") # 42
words2num("zweiundvierzig", lang="de") # 42
words2num_sentence("I bought twenty-three apples and fourteen pears.")
# 'I bought 23 apples and 14 pears.'Full Changelog: v0.2.2...v0.2.3
v0.2.2
words2num2 — inverse of num2words2
Convert spoken-form numbers back to numeric values across 100+
locales. Auto-generated release.
Installation
pip install words2num2Usage
from words2num2 import words2num, words2num_sentence
words2num("forty-two") # 42
words2num("one thousand two hundred") # 1200
words2num("quarante-deux", lang="fr") # 42
words2num("zweiundvierzig", lang="de") # 42
words2num_sentence("I bought twenty-three apples and fourteen pears.")
# 'I bought 23 apples and 14 pears.'Full Changelog: v0.2.1...v0.2.2
v0.2.1
words2num2 — inverse of num2words2
Convert spoken-form numbers back to numeric values across 100+
locales. Auto-generated release.
Installation
pip install words2num2Usage
from words2num2 import words2num, words2num_sentence
words2num("forty-two") # 42
words2num("one thousand two hundred") # 1200
words2num("quarante-deux", lang="fr") # 42
words2num("zweiundvierzig", lang="de") # 42
words2num_sentence("I bought twenty-three apples and fourteen pears.")
# 'I bought 23 apples and 14 pears.'Full Changelog: v0.2.0...v0.2.1
v0.2.0
words2num2 — inverse of num2words2
Convert spoken-form numbers back to numeric values across 100+
locales. Auto-generated release.
Installation
pip install words2num2Usage
from words2num2 import words2num, words2num_sentence
words2num("forty-two") # 42
words2num("one thousand two hundred") # 1200
words2num("quarante-deux", lang="fr") # 42
words2num("zweiundvierzig", lang="de") # 42
words2num_sentence("I bought twenty-three apples and fourteen pears.")
# 'I bought 23 apples and 14 pears.'Full Changelog: v0.1.1...v0.2.0
v0.1.1
words2num2 — inverse of num2words2
Convert spoken-form numbers back to numeric values across 100+
locales. Auto-generated release.
Installation
pip install words2num2Usage
from words2num2 import words2num, words2num_sentence
words2num("forty-two") # 42
words2num("one thousand two hundred") # 1200
words2num("quarante-deux", lang="fr") # 42
words2num("zweiundvierzig", lang="de") # 42
words2num_sentence("I bought twenty-three apples and fourteen pears.")
# 'I bought 23 apples and 14 pears.'Full Changelog: v0.1.0...v0.1.1