by thecodemonkey · 12y ago · 0 comments
Our address parser will try to pick up the address even if isn't formatted correctly with commas, but it obviously won't work in all cases. Address parsing is indeed a very complex problem.
If you can start with a list of all the following, you've got a great start:
prefix abbreviations street names street types suffixes city names state names
Add to that all the possible misspellings and then factor in levenshtein and soundex to account for misspellings you didn't know about and you've got a pretty dang good address parser. Figure out how to do that lickety-split fast, and you've got gold.