I'm excited to announce the initial release of py_dutch_numerals, a Python package for parsing and converting Dutch written numbers into their numeric equivalents.
Features
- Parse Dutch written numbers and convert them to integers
- Support for numbers up to one million
- Handle compound numbers (e.g., "eenentwintig" for 21)
- Robust parsing using ANTLR4
- Easy-to-use API with a single function `tel()`
Installation
Install py_dutch_numerals using pip:
pip install py_dutch_numerals
Usage
Here's a quick example of how to use py_dutch_numerals:
python
from py_dutch_numerals import tel
result = tel("driehonderdvijfenveertig")
print(result) Output: 345
result = tel("een miljoen tweehonderdduizend")
print(result) Output: 1200000
Documentation
For more detailed information, please refer to the [GitHub repository](https://github.com/grootstebozewolf/py_dutch_numerals).
Acknowledgements
I'd like to thank the ANTLR4 project for providing the parsing tools that make this package possible.
Feedback
I welcome your feedback! Please feel free to open issues on the [GitHub repository](https://github.com/grootstebozewolf/py_dutch_numerals) if you encounter any problems or have suggestions for improvements.
Thank you for using py_dutch_numerals!
- Jeroen Bloemscheer