public class DoubleMetaphone extends Object implements Simplifier
DoubleMetaphone
Constructor and Description |
---|
DoubleMetaphone()
Creates an instance of this DoubleMetaphone encoder
|
DoubleMetaphone(int maxCodeLength,
boolean useAlternate)
Creates an instance of the DoubleMetaphone simplifier with a
maxCodeLength . |
Modifier and Type | Method and Description |
---|---|
String |
simplify(String input)
Simplifiers the input string.
|
String |
toString() |
public DoubleMetaphone()
public DoubleMetaphone(int maxCodeLength, boolean useAlternate)
maxCodeLength
. All encodings will have at most
maxCodeLength
characters.maxCodeLength
- the maximum length of the codeuseAlternate
- use alternate encodepublic String simplify(String input)
Simplifier
simplify
in interface Simplifier
input
- string to simplifyCopyright © 2014–2018. All rights reserved.