Example usage for org.apache.commons.codec.language RefinedSoundex encode

List of usage examples for org.apache.commons.codec.language RefinedSoundex encode

Introduction

In this page you can find the example usage for org.apache.commons.codec.language RefinedSoundex encode.

Prototype

public String encode(String pString) 

Source Link

Document

Encodes a String using the refined soundex algorithm.

Usage

From source file:at.jps.sanction.core.util.TokenTool.java

public static float compareRefinedSoundex(final String text1, final String text2, final boolean fuzzy,
        final int minlen, final double fuzzyValue) {

    final RefinedSoundex encoder = new RefinedSoundex(); // TODO: in reallife make
    // this//from w w w .  j  a v  a 2s .co m
    // go away !!

    return (compareCheck(encoder.encode(text1), encoder.encode(text2), fuzzy, minlen, fuzzyValue));

}

From source file:com.vangent.hieos.empi.transform.RefinedSoundexTransformFunction.java

/**
 * //  w w w .  j  a  va  2s  .co  m
 * @param obj
 * @return
 */
public Object transform(Object obj) {
    RefinedSoundex encoder = new RefinedSoundex();
    return encoder.encode((String) obj);
}