Converting integers to english representation

brianc at temple.edu brianc at temple.edu
Tue Aug 31 13:50:24 EDT 2004


Hello All,

I'm developing a system to parse and enumerate addresses. The
current obstacle is numbered streets. Does anybody know of a
module already written to convert integers to their english
equivalents?

Example:
1ST -> FIRST
SECOND -> 2ND

or even something like this:
1 -> ONE
TWO -> 2

There's something similar in the dive into python book with
roman numerals. http://diveintopython.org/unit_testing/index.html

Anything towards that direction would greatly help and save me
a lot of time then from starting from scratch.

Thank you in advance.
-Brian



More information about the Python-list mailing list