tangentum technologies    
 

Deutsch

   
   
 
   

Example

As a simple example for the use of the "Metaphone" algorithm, please take the following program:

import com.tangentum.phonetix.Metaphone;

public class PhoneticTest
{
    public static void main(String[] argv)
    {
        Metaphone metaphone = new Metaphone();

        String original = "Phonetix";
        String encoded  = metaphone.generateKey(original);

        System.out.println("original="+original+", encoded="+encoded);
    }
}

After compiling and running this example program you will get an output like this:

original=Phonetix, encoded=FNTK