In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php