Skip to main content

Python module for converting natural language numbers into ints and floats.

Project description

Build Status


A Python module to convert natural language numerics into ints and floats. This is a port of the Ruby gem numerizer


The NLG library can be installed from PyPI as follows:

$ pip install numerizer

or from source as follows:

$ git clone
$ cd numerizer
$ pip install -e .


>>> from numerizer import numerize
>>> numerize('forty two')
>>> numerize('forty-two')
>>> numerize('four hundred and sixty two')
>>> numerize('one fifty')
>>> numerize('twelve hundred')
>>> numerize('twenty one thousand four hundred and seventy three')
>>> numerize('one million two hundred and fifty thousand and seven')
>>> numerize('one billion and one')
>>> numerize('nine and three quarters')
>>> numerize('platform nine and three quarters')
'platform 9.75'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for numerizer, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size numerizer-0.1.5.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page