A port of the GEO::StreetAddress::US Perl Library. search.cpan.org/~sderle/Geo-StreetAddress-US-0.99/US.pm
>> StreetAddress.parse(“123 Fake St. South Chicago, IL, 90210”)
> {“city”=>“Chicago”, “number”=>“123”, “zip”=>“90210”, “prefix”=>“”, “street”=>“Fake”, “type”=>“St”, “suffix”=>“S”, “state”=>“IL”}¶ ↑
Please feel free to do whatever you’d like with it, and if you find it useful let me know.
Cheers, Jeremy Hubert jeremyhubert.com