org.simmetrics.simplifiers.MatchRatingApproach Maven / Gradle / Ivy
package org.simmetrics.simplifiers;
import org.apache.commons.codec.language.MatchRatingApproachEncoder;
/**
* Match Rating Approach Phonetic Algorithm Developed by Western Airlines in 1977.
*
* This class is immutable and thread-safe.
*
* @see Wikipedia - Match Rating Approach
* @see org.apache.commons.codec.language.MatchRatingApproachEncoder
*/
public class MatchRatingApproach implements Simplifier {
private final MatchRatingApproachEncoder simplifier = new MatchRatingApproachEncoder();
@Override
public String simplify(String input) {
return simplifier.encode(input);
}
@Override
public String toString() {
return "MatchRatingApproach";
}
}