metaphone
Calculate the metaphone key of a string
metaphone()
function calculates the metaphone key of a string.
The metaphone key represents the English pronunciation of a string.
metaphone()
function can be used in spellchecking programs.
Note: metaphone()
function creates the same key for words with similar pronunciation.
Note: The generated metaphone key length is variable.
Tip: metaphone() is more accurate than soundex()
function, because metaphone()
understands the basic rules of English pronunciation.
metaphone ( string , length )
parameter | describe |
---|---|
string | Required. Specifies the string to be checked. |
length | Optional. Specifies the maximum length of the metaphone key. |