com.swabunga.spell.engine
Class BanglaMetaphone

java.lang.Object
  extended by com.swabunga.spell.engine.BanglaMetaphone
All Implemented Interfaces:
Transformator

public class BanglaMetaphone
extends java.lang.Object
implements Transformator


Constructor Summary
BanglaMetaphone()
           
 
Method Summary
static java.lang.String Dec2Hex(int valDec)
           
 char[] getReplaceList()
          gets the list of characters that should be swapped in to the misspelled word in order to try to find more suggestions.
static void printUnicode(java.lang.String word)
           
 java.lang.String transform(java.lang.String word)
          Take the given word, and return the best phonetic hash for it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BanglaMetaphone

public BanglaMetaphone()
Method Detail

getReplaceList

public char[] getReplaceList()
Description copied from interface: Transformator
gets the list of characters that should be swapped in to the misspelled word in order to try to find more suggestions. In general, this list represents all of the unique phonetic characters for this Tranformator.

The replace list is used in the getSuggestions method. All of the letters in the misspelled word are replaced with the characters from this list to try and generate more suggestions, which implies l*n tries, if l is the size of the string, and n is the size of this list.

In addition to that, each of these letters is added to the mispelled word.

Specified by:
getReplaceList in interface Transformator
Returns:
char[] misspelled words should try replacing with these characters to get more suggestions

transform

public java.lang.String transform(java.lang.String word)
Description copied from interface: Transformator
Take the given word, and return the best phonetic hash for it.

Specified by:
transform in interface Transformator

printUnicode

public static void printUnicode(java.lang.String word)

Dec2Hex

public static java.lang.String Dec2Hex(int valDec)