loadmetaphones子例程是创建变音位关键字和值的两个散列的简单代码。
The loadMetaPhones subroutine is straightforward code that creates two hashes of metaphone keys and values.
如果提供清单4中所示格式的数据文件,loadinflectives子例程将构建字母数字语音散列。
Given a data file of the format shown in Listing 4, the loadInflectives subroutine builds an alphanumeric phonetic hash.
声明局部变量后,子例程将遍历每个指定查询词,搜索name或jobresponsibilities散列中的变音位匹配。
After the local variable declaration, the subroutine will make a pass through every query word specified searching for a metaphone match in the name or jobresponsibilities hashes.
应用推荐