List of usage examples for org.apache.commons.codec StringEncoder interface-usage
From source file com.anteam.demo.codec.core.BasicCoder.java
/**
* @author bash
* @version V1.0
* @type BasicCoder
* @desc
* @date 2014-05-22
From source file org.folg.names.score.Nysiis.java
/** * Nysiis encoding algorithm * Translated from http://www.dropby.com/nysiisOriginal.js */ public class Nysiis implements org.apache.commons.codec.StringEncoder {
From source file org.folg.names.score.DMSoundex.java
/** * Daitch-Mokotov soundex algorithm, following instructions at http://www.jewishgen.org/infofiles/soundex.html * However, that page recommends generating multiple codes for certain letter combinations (ch, ck, c, j, rs, and rz) * In order to return just a single code, the algorithm below generates the first code in all cases */ public class DMSoundex implements org.apache.commons.codec.StringEncoder {
From source file org.opensextant.phonetic.CaseEncoder.java
/** * A simple encoder that reduces the input to lower case. */ public class CaseEncoder implements StringEncoder { @Override public Object encode(Object obj) throws EncoderException {
From source file org.opensextant.phonetic.DiacriticEncoder.java
/** * An encoder that reduces all diacritics to the appropriate base character. */ public class DiacriticEncoder implements StringEncoder { @Override public Object encode(Object obj) throws EncoderException {
From source file org.opensextant.phonetic.NullEncoder.java
/** * An encoder that does nothing - just returns the input. */ public class NullEncoder implements StringEncoder { @Override public Object encode(Object obj) throws EncoderException {
From source file org.opensextant.phonetic.PunctEncoder.java
/** * A simple encoder that merely removes leading and trailing punctuation */ public class PunctEncoder implements StringEncoder { @Override public Object encode(Object obj) throws EncoderException {
From source file org.opensextant.phonetic.AbbreviationNormalizer.java
/** * A String encoder that removes intermediate periods (".") in words. */ public class AbbreviationNormalizer implements StringEncoder { @Override public Object encode(Object obj) throws EncoderException {
From source file org.opensextant.phonetic.SimplePhonetic0Encoder.java
/**
* A simple home brew encoder that:
* <ol>
* <li>Reduces the input to lower case</li>
* <li>Removes punctuation</li>
* <li>Reduces all diacritics to the appropriate base character</li>
From source file org.opensextant.phonetic.SimplePhonetic0SolrEncoder.java
/**
* A simple home brew encoder that:
* <ol>
* <li>Reduces the input to lower case</li>
* <li>Removes punctuation</li>
* <li>Reduces all diacritics to the appropriate base character using the same mapping as the Sole/Lucene ASCIIFolding