Skip to content

Releases: akshaynagpal/w2n

w2n-1.1

02 Jun 14:51
Compare
Choose a tag to compare

Issues resolved / handled

  • #12 Index error for particular inputs Eg. "thousand"
  • #13 Using "Raise" for error reporting instead of print

Update instructions

pip install word2number --upgrade

( If you are installing for the first time, pip install word2number )

About Word to Number

This is a Python module to convert number words (eg. twenty one) to numeric digits (21).
It works for positive numbers upto the range of 999,999,999,999 (i.e. billions)

Contribute

If you find any bugs/errors in the usage of above code, please raise an issue (recommended) or send an email at [email protected].

1.0

17 May 15:09
Compare
Choose a tag to compare
1.0

Issues resolved / handled

  • #3 Index error when string contains digits (solved partially)
  • #5 Added support for numbers separated by dash (like "thirty-five")
  • #6 Returns None if no number words found and prints error
  • #7 Improved error handling
  • #9 Added support for decimals ('point')
  • #11 Added compatibility with python 3

Update instructions

pip install word2number --upgrade

( If you are installing for the first time, pip install word2number )

About Word to Number

This is a Python module to convert number words (eg. twenty one) to numeric digits (21).
It works for positive numbers upto the range of 999,999,999,999 (i.e. billions)

Contribute

If you find any bugs/errors in the usage of above code, please raise an issue (recommended) or send an email at [email protected].

0.2

07 May 15:33
Compare
Choose a tag to compare
0.2

Errors resolved / handled

  • #1 IndexError when the string provided does not contain number
  • #2 IndexError when the string provided between eleven to nineteen

Update instructions

pip install word2number --upgrade

( If you are installing for the first time, pip install word2number )

About Word to Number

This is a Python module to convert number words (eg. twenty one) to numeric digits (21).
It works for positive numbers upto the range of 999,999,999,999 (i.e. billions)

TODO

  • #3 Index error when string contains digits
  • This module works with only Python 2.x for now. Support for Python 3.x will be added soon.

Contribute

If you find any bugs/errors in the usage of above code, please raise an issue (recommended) or send an email at [email protected].

0.1.1

02 Jan 20:48
Compare
Choose a tag to compare
  • Updated readme.rst

0.1

02 Jan 17:52
Compare
Choose a tag to compare
0.1
  • Initial release
  • Word to Number

This is a Python module to convert number words (eg. twenty one) to numeric digits (21).
It works for positive numbers upto the range of 999,999,999,999 (i.e. billions)
Below is the installation, usage and other details of this module.

  • TODO
    This module works with only Python 2.x for now. Support for Python 3.x will be added soon.
  • Errors/ Bugs

If you find any bugs/errors in the usage of above code, please raise an issue (recommended) or send an email at [email protected].