in reply to Compare Arrays with a Count of Matches
Maybe a more robust comparision would be to say "yes" when all the words that are in the string with fewer words are also in the other string, after prepositions and other glue-words like in,of,at,by,... have been removed. That would have the advantage of matching strings with fewer than 3 words and strings where only the prepositions differ. Depends on the specifics of your data naturally.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Compare Arrays with a Count of Matches
by jhourcle (Prior) on Feb 20, 2009 at 18:55 UTC |