au.org.ala.names.util
Class TaxonNameSoundEx

java.lang.Object
  extended by au.org.ala.names.util.TaxonNameSoundEx

public class TaxonNameSoundEx
extends java.lang.Object

A Java implementation of the sound ex algorithm supplied by Tony Rees Copied from Taxamatch project. We don't need full taxamatch...


Constructor Summary
TaxonNameSoundEx()
           
 
Method Summary
static java.lang.String ltrim(java.lang.String source)
           
static java.lang.String normalize(java.lang.String str)
           
static java.lang.String rtrim(java.lang.String source)
           
 java.lang.String soundEx(java.lang.String source)
          Returns the SoundEx for the source string
static java.lang.String treatWord(java.lang.String str2, java.lang.String wordType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxonNameSoundEx

public TaxonNameSoundEx()
Method Detail

ltrim

public static java.lang.String ltrim(java.lang.String source)

rtrim

public static java.lang.String rtrim(java.lang.String source)

normalize

public static java.lang.String normalize(java.lang.String str)

treatWord

public static java.lang.String treatWord(java.lang.String str2,
                                         java.lang.String wordType)

soundEx

public java.lang.String soundEx(java.lang.String source)
Returns the SoundEx for the source string

Parameters:
source - String to get the sound ex of
Returns:
The sound ex string


Copyright © 2014. All Rights Reserved.