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.
In reply to Re: Compare Arrays with a Count of Matches
by jethro
in thread Compare Arrays with a Count of Matches
by de2425
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |