If a metaphone match has been found, just the first matched word with the appropriate metaphone is selected for printing.
如果找到变音位匹配,只选择第一个具有适当变音位的匹配词进行打印。
Because the NathanHarrington.html metaphone contains an 「h,」 it will be added to the suggestion list.
由于NathanHarrington . html变音中含有一个「h」,故将其添加到建议列表。
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.
声明局部变量后,子例程将遍历每个指定查询词,搜索name或jobresponsibilities散列中的变音位匹配。
The primary method for suggesting alternatives to typographical and spelling errors will be metaphone matching.
针对输入和拼写错误提供替代建议的主要方法为变音匹配。
You can print all of the matching metaphones, or even search the database automatically based on the first few characters in the metaphone match.
可以打印所有匹配变音位,甚至还可以根据变音位匹配中的头几个字符自动搜索数据库。
Note how how.html, why.html, and who.html all resolve to the same metaphone code.
注意,how.html、why.html和 who.html都解析为了相同的变音代码。
Web server pages and metaphone codes.
Web服务器页面和变音代码。
Use the program buildMetaphones.pl in Listing 10 to create your own metaphone databases.
使用清单10 中的程序buildMetaphones.pl 来创建您自己的变音位数据库。
Note that this approach will also produce Suggestions of NathanHarrington.html for one-letter metaphone 404s like whoo.html.
注意,此方法还将为单字母变音404(如whoo . html)生成NathanHarrington . html建议。
The loadMetaPhones subroutine is straightforward code that creates two hashes of metaphone keys and values.
loadmetaphones子例程是创建变音位关键字和值的两个散列的简单代码。
In our example, a 1-frequency of metaphone match in the name field is considered more desirable than a 50-frequency match in the jobresponsibilities field.
在本文的示例中,认为name字段中的1次变音位匹配比jobresponsibilities字段中的50次匹配好。
Insert a call to the Aspell or Ispell API for another avenue of search query suggestion, or replace the metaphone matching with the best modern soundex for your application.
插入搜索查询建议的另一种方法的Aspell或IspellAPI的调用,或将变音位匹配替换为应用程序的最佳现代探测法。
The average metaphone code is, therefore, a much more accurate representation of a given word, and provides an ideal basis for building a suggestion library.
因此,变音代码通常能够更加準确地表示特定的单词,并且为建议库的构建提供了理论基础。
Part 2 covers the scoring and metaphone matching topics to help complete your search capabilities.
第2部分将介绍如何进行计分和语音匹配以帮助完成搜索功能。