Re: Matching titles from distinct data sources
| From: | David Robley | Date: | Thu, 29 May 2003 11:24:38 +0000 |
| Subject: | Re: Matching titles from distinct data sources | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149377@lists.php.net to get a copy of this message | ||
In article <20030527223613.38743.qmail@pb1.pair.com>, info@composite.co.nz
says...
> Hello
>
> Does anyone know of an algorithm or program for matching pieces of text
> (such as film titles) that are conceptually the same, but which may be
> written/spelled differently?
>
> eg. I need something which will identify a (likely to be) the same:
> "The Matrix Reloaded"
> "Matrix Reloaded, The"
> "Matrix Reloaded"
> "The Matrix: Reloaded"
> etc.
>
> Thanks
> James
Maybe one or more of soundex(), metaphone(), levenshtein() or
similar_text() might do the trick for you. All php functions :-)
Cheers
--
Quod subigo farinam