代码说明:
This is an algorithm expressed in Object Pascal to do the Metaphone phonetic hash. It's kind of like soundex, but a little more specific. The input to the algorithm is a word, and the output is a hash. If two hashes match, that means that the two original words sounded phonetically similar. An excellent technique for less sensitivity is to only compare the first few digits of the code as per Soundex. This is usually used to find misspellings in a hand-entered database and works best for comparing names.
比较两个单词的声音是否相似
【立即下载】
|