Skip to main content

py_dutch_numerals

py_dutch_numerals is a Python package that parses and converts Dutch written numbers into their numeric equivalents, supporting numbers up to one million.

Installation

You can install py_dutch_numerals using pip:

pip install py_dutch_numerals

Usage

Here's a basic example of how to use py_dutch_numerals:

from py_dutch_numerals import tel

# Convert a Dutch number to an integer
result = tel("driehonderdvijfenveertig")
print(result)  # Output: 345

# It also handles larger numbers
result = tel("een miljoen tweehonderdduizend")
print(result)  # Output: 1200000

Features

  • Parses Dutch written numbers and converts them to integers
  • Supports numbers up to one million
  • Handles compound numbers (e.g., "eenentwintig" for 21)
  • Uses ANTLR4 for robust parsing

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License - see the LICENSE file for details.

Author

Jeroen Bloemscheer

Acknowledgments

  • This project uses ANTLR4 for parsing
  • Inspired by the need for processing Dutch numerical text in various applications

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.

Release files for py-dutch-numerals 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-dutch-numerals 1.0.3
File Size Uploaded
py_dutch_numerals-1.0.3.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-dutch-numerals 1.0.3
File Interpreter ABI Platform
py_dutch_numerals-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 kB

Release files / py_dutch_numerals-1.0.3.tar.gz

Download URL py_dutch_numerals-1.0.3.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3f3bbb17c7182ea548495a36d2ff2df24bbf7c608503cacafb47c95b97949a9a
BLAKE2b-256 checksum
How to use checksums
871bcd293096f81a5cd2f9062a21c0d1e96f51532092f0d1b12424972fe1ffec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / py_dutch_numerals-1.0.3-py3-none-any.whl

Download URL py_dutch_numerals-1.0.3-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0818e32983266451e9d55058cc944e114c03758029c6677b2059530e16209656
BLAKE2b-256 checksum
How to use checksums
dce904713c58291b6c4cd39d5c99a4f05e0d9f98d2354836c7f20b41d60f5f51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page