All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simmetrics.simplifiers.MatchRatingApproach Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
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";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy