Home | History | Annotate | Download | only in language

Lines Matching defs:metaphone

23  * Encodes a string into a metaphone value. 
29 * <CITE>Hanging on the Metaphone</CITE> by <CITE>Lawrence Philips</CITE> in <CITE>Computer Language of Dec. 1990, p
34 * @version $Id: Metaphone.java,v 1.20 2004/06/05 18:32:04 ggregory Exp $
36 public class Metaphone implements StringEncoder {
44 * Variable used in Metaphone algorithm
49 * Variable used in Metaphone algorithm
54 * The max code length for metaphone is 4
59 * Creates an instance of the Metaphone encoder
61 public Metaphone() {
66 * Find the metaphone value of a String. This is similar to the
72 * @param txt String to find the metaphone code for
73 * @return A metaphone code corresponding to the String supplied
75 public String metaphone(String txt) {
347 * Encodes an Object using the metaphone algorithm. This method
354 * metaphone code which corresponds to the String supplied.
360 throw new EncoderException("Parameter supplied to Metaphone encode is not of type java.lang.String");
362 return metaphone((String) pObject);
366 * Encodes a String using the Metaphone algorithm.
369 * @return The metaphone code corresponding to the String supplied
372 return metaphone(pString);
384 return metaphone(str1).equals(metaphone(str2));