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
,PN
orWR
- Drop
B
if afterM
at the end of the string C
transforms intoX
if followed byIA
orH
S
if followed byI
,E
, orY
K
otherwise
D
transforms intoJ
if followed byGE
,GY
, orGI
T
otherwise
- Drop
G
- if followed by
H
andH
is not at the end or before a vowel - if followed by
N
orNED
and is at the end of the string
- if followed by
G
transforms intoJ
if beforeI
,E
orY
and is not aGG
K
otherwise
- Drop
H
- if after a vowel and not before a vowel
- if after
C
,S
,P
,T
orG
- Drop
K
if afterC
PH
transforms intoF
Q
transforms intoK
S
transforms intoX
if followed byH
,IO
orIA
T
transforms intoX
if followed byIA
orIO
TH
transforms into0
(zero)- Drop
T
if followed byCH
V
transforms intoF
- Drop
W
if not followed by a vowel WH
transforms intoW
if at the beginning of the stringX
transforms intoS
if at the beginningKS
otherwise
- Drop
Y
if not followed by a vowel Z
transforms intoS
- Drop all vowels unless it is the beginning character