资 源 简 介
Yeti Witch
This project adds several well known techniques for finding strings-that-almost-match-other-strings to the native Javascript String object, some of which are phonetic algorithms.
The supported list currently includes Soundex, Refined Soundex, Metaphone, Caverphone, Levenshtein distance, anagrams and Porter Stemming. All of these are primarily designed to work with the English language, although anagrams and Levenshtein are just string analysis so will work with anything.
The extensions are primarily designed to be executed under the Rhino scripting engine although porting them to different interpreters (to run in the browser or whatever) should be trivial.
Tests
After checking out (or downloading) the code you should probably execute the unit tests. This will determine whether your system will run the code.