public final class DoubleMetaphone extends Object
This version contains improvements by David Dossot <david@dossot.net>.
This code is based on an implementation by Ed Parrish, which was obtained from: http://www.cse.ucsc.edu/~eparrish/toolbox/search.html See also: http://aspell.sourceforge.net/metaphone/ for more info.
Constructor and Description |
---|
DoubleMetaphone()
Creates new DoubleMetaphone
|
Modifier and Type | Method and Description |
---|---|
String |
encode(String sin)
Description of the Method
|
String |
getAlternate()
Gets the alternate attribute of the DoubleMetaphone object
|
StringBuilder |
getAlternateBuffer()
Gets the alternateBuffer attribute of the DoubleMetaphone object
|
int |
getEncodeLimit()
Gets the encodeLimit attribute of the DoubleMetaphone object
|
String |
getPrimary()
Gets the primary attribute of the DoubleMetaphone object
|
StringBuilder |
getPrimaryBuffer()
Gets the primaryBuffer attribute of the DoubleMetaphone object
|
static String |
sencode(String in)
Description of the Method
|
boolean |
setEncodeLimit(int newLimit)
Sets the encodeLimit attribute of the DoubleMetaphone object
|
public boolean setEncodeLimit(int newLimit)
newLimit
- The new encodeLimit valuepublic String getAlternate()
public StringBuilder getAlternateBuffer()
public int getEncodeLimit()
public String getPrimary()
public StringBuilder getPrimaryBuffer()
public static String sencode(String in)
in
- Description of the ParameterCopyright © 2016 Egothor. All Rights Reserved.