★ wanayoo — archive 1999 http://fr.php.net/manual/en/function.metaphone.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmd5nl_langinfonext
Last updated: Sun, 18 Aug 2002
view the printer friendly version or the printer friendly version with notes or change language to Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Turkish

metaphone

(PHP 4 )

metaphone -- Calculate the metaphone key of a string

Description

string metaphone ( string str)

Calculates the metaphone key of str.

Similar to soundex() metaphone creates the same key for similar sounding words. It's more accurate than soundex() as it knows the basic rules of English pronunciation. The metaphone generated keys are of variable length.

Metaphone was developed by Lawrence Philips <lphilips@verity.com>. It is described in ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995].

User Contributed Notes
metaphone
add a note about notes
davef@getacard.com
22-Apr-2000 12:52

A good reference to explain how the metaphone stuff works (and show you a working example) is:
http://www.lanw.com/java/phonetic/

ahjs@ozemail.com.au
13-Mar-2002 04:51

The improved double metaphone algorithm is available as a php class and function at http://swoodbridge.com/DoubleMetaPhone/
amon@nonmouse.net
31-Jul-2002 09:14

You can see this function at work at http://wamex.org.

My only wish is that it returned phonetic values for numbers, instead of "".

add a note about notes
previousmd5nl_langinfonext
Last updated: Sun, 18 Aug 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Mon Aug 19 03:55:17 2002 CEST