Previous detail | Up | Next detail |
Detail 6.1.2 | Detail 6.1 | Detail 6.1.4 |
Soundex is a phoneticization algorithm first patented in 1918 by Robert C. Russel. It has been standardized since then and is now used extensively as technique for finding phonetic matches of English-language strings.
Soundex builds an N-character phonetic code for a String, where N is 4 by default. The slightly simplified procedure is:
Examples:
Basic construction:
String name = "somePredicateName"; Method m = Cdc1Record.class.getMethod("getLastName", (Class<?>[])null); Predicate<Cdc1Record> p = new SoundexPredicate<Cdc1Record>(name, m);
The New York State Identification and Intelligence System Phonetic Code, commonly known as NYSIIS, is a phonetic algorithm devised in 1970 that works well for English-language strings.
Nysiss is a much more complicated algorithm than Soundex than builds more precise phonetic codes. In brief, the procedure is:
Examples:
Basic construction:
String name = "somePredicateName"; Method m = Cdc1Record.class.getMethod("getLastName", (Class<?>[])null); Predicate<Cdc1Record> p = new NysiisPredicate<Cdc1Record>(name, m);