Encoder implementing the phonetic algorithm "Metaphone".
Metaphone was originally developed by Lawrence Philips.
This implementation is based on his original BASIC implementation.
Constructs a Metaphone encoder which generates keys of given
maximal length.
Parameters:
maxLength - the maximal length of the generated keys. If negative,
the lengths of the keys returned are only limited
by the lengths of the words to encode.
Metaphone
public Metaphone()
Constructs a Metaphone encoder which generates keys with
maximal length 4.
Method Detail
toString
public java.lang.String toString()
Returns a String identifying the algorithm.
Overrides:
toString in class java.lang.Object
generateKeys
public java.lang.String[] generateKeys(java.lang.String word)