The Metaphone algorithm was Created by Lawrence Philips. The Metaphone algorithm was first introduced in an article published in "Computer Language" December 1990 issue. Since its inception the algorithm has been updated by the original author, Lawrence Phillips, twice. The second iteration, released in 2000 was the Double Metaphone and the most recent update is the Metaphone 3, realease in 2009 under a proprietary license and as such is unavailable without a purchased license.
There are 16 distinct "consonant sounds" in the metaphone algorithm. B, F, H, J, K, L, M, N, O, P, R, S, T, W, X, Y and 0 (zero) where 0 represents the th sound.
- Drop duplicate adjacent letters, except for
C - Drop the first letter if the string begins with
AE,GN,KN,PNorWR - Drop
Bif afterMat the end of the string Ctransforms intoXif followed byIAorHSif followed byI,E, orYKotherwise
Dtransforms intoJif followed byGE,GY, orGITotherwise
- Drop
G- if followed by
HandHis not at the end or before a vowel - if followed by
NorNEDand is at the end of the string
- if followed by
Gtransforms intoJif beforeI,EorYand is not aGGKotherwise
- Drop
H- if after a vowel and not before a vowel
- if after
C,S,P,TorG
- Drop
Kif afterC PHtransforms intoFQtransforms intoKStransforms intoXif followed byH,IOorIATtransforms intoXif followed byIAorIOTHtransforms into0(zero)- Drop
Tif followed byCH Vtransforms intoF- Drop
Wif not followed by a vowel WHtransforms intoWif at the beginning of the stringXtransforms intoSif at the beginningKSotherwise
- Drop
Yif not followed by a vowel Ztransforms intoS- Drop all vowels unless it is the beginning character