Converting integers to english representation

Peter Hansen peter at engcorp.com
Tue Aug 31 20:40:41 CEST 2004


brianc at temple.edu wrote:

> 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
> 
> Anything towards that direction would greatly help and save me
> a lot of time then from starting from scratch.

The word you are missing is probably 'ordinal', as opposed
to cardinal (one, two, three) numbers.  Google can likely
help you with a search for "ordinal number convert' or
such.

-Peter



More information about the Python-list mailing list