|We don't bite newbies here... much|
Match similar textby shadox (Priest)
|on Sep 06, 2003 at 23:42 UTC||Need Help??|
shadox has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I am doing a script to change some values from one database table to another.
My problem is this:
The values that i have to move are _valid_ USA States that people put in the database ( they wrote it from a web page ), but i need to check if the state is valid, a state is valid if it was write correctly, for example
New York or NY
So far i have everything done, but i want to make text match with similar text, so if i have
Ner Yorh, i need it to match with New York, so my question is if there is some module to match _similar text_, something like google does when you put something wrong and it says 'Did you mean: .......'.
Anyone knows a module or something to do this.
Optimus magister, bonus liber