org.egothor.parser.filter
Class Nysiis

java.lang.Object
  extended by org.egothor.parser.filter.Nysiis

public class Nysiis
extends java.lang.Object

This module implements the New York State Identification and Intelligence System (NYSIIS) Phonetic Code.

This version contains improvements by David Dossot <david@dossot.net>.

Author:
David Dossot, Leo Galambos (implementation of lowercase style)

Constructor Summary
Nysiis()
           
 
Method Summary
 java.lang.String encode(java.lang.String originalWord)
          encode - Nysiis phonetic encoding.
 java.lang.String reduceDuplicates(java.lang.String word)
          Description of the Method
 java.lang.StringBuilder reduceDuplicates(java.lang.StringBuilder word)
          Description of the Method
static java.lang.String sencode(java.lang.String word)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Nysiis

public Nysiis()
Method Detail

sencode

public static java.lang.String sencode(java.lang.String word)
Description of the Method

Parameters:
word - Description of the Parameter
Returns:
Description of the Return Value

encode

public java.lang.String encode(java.lang.String originalWord)
encode - Nysiis phonetic encoding.

Parameters:
originalWord - Description of the Parameter
Returns:
String - the encoded word

reduceDuplicates

public java.lang.String reduceDuplicates(java.lang.String word)
Description of the Method

Parameters:
word - Description of the Parameter
Returns:
Description of the Return Value

reduceDuplicates

public java.lang.StringBuilder reduceDuplicates(java.lang.StringBuilder word)
Description of the Method

Parameters:
word - Description of the Parameter
Returns:
Description of the Return Value