com.keyoti.rapidSpell
Class PhoneticsProcessor

java.lang.Object
  |
  +--com.keyoti.rapidSpell.PhoneticsProcessor

public class PhoneticsProcessor
extends java.lang.Object

Generates the phonetic (sounds like) code for a word.

Author:
Jim Wright

Constructor Summary
PhoneticsProcessor()
           
 
Method Summary
static boolean hasSameMetaPhone(java.lang.String txt, java.lang.String metaphone)
          is more efficient than finding the metaphone of word and then testing if strings are equal.
static java.lang.String metaPhone(java.lang.String txt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneticsProcessor

public PhoneticsProcessor()
Method Detail

metaPhone

public static java.lang.String metaPhone(java.lang.String txt)
Parameters:
txt - the word to find the phonetic code for
Returns:
String the phonetic code for the txt

hasSameMetaPhone

public static boolean hasSameMetaPhone(java.lang.String txt,
                                       java.lang.String metaphone)
is more efficient than finding the metaphone of word and then testing if strings are equal.
Parameters:
txt - word to check if has same metaphone as
metaphone - the meta phone to compare with
Returns:
boolean true if txt has same metaphone


Copyright © Keyoti All Rights Reserved.