Algorithm

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two tables in a database. One that contains the official names for
countries, provinces and towns, and another that has specific site data keyed
on town names.

The problem is that the second table town names are often not spelled
correctly and obviously do not match the official names. I would like to
write a code module in VBA that would select a town name and then search the
official name table for the best match and add that offical name to a blank
field so that I can review the results befor commiting a change.

Is there an algorithm that would get me the best match?

Thanks,

Larry
 
Google for the Soundex algorithm and see if that will work for you.
 
Google for the Soundex algorithm and see if that will work for you.

.... and if that's not precise enough, look for "Levenshtein distance"
instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top