com.evanmclean.evlib.text
Class FuzzyLexicon

java.lang.Object
  extended by com.evanmclean.evlib.text.FuzzyLexicon

public class FuzzyLexicon
extends Object

Produced by FuzzyCompare to perform fuzzy comparisons between strings.

Note: This class needs a recent version of Apache Commons Lang library.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)
See Also:
FuzzyCompare

Method Summary
 double difference(FuzzyLexicon right_lexicon)
          Perform the difference comparison against the specified lexicon.
 double difference(String rhs)
          Perform the difference comparison against the specified string.
 String getStr()
          The original string this lexicon represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

difference

public double difference(FuzzyLexicon right_lexicon)
Perform the difference comparison against the specified lexicon.

Parameters:
right_lexicon - The lexicon to compare against.
Returns:
The difference between the lexicons.
See Also:
difference(String)

difference

public double difference(String rhs)
Perform the difference comparison against the specified string.

Parameters:
rhs - The string to compare against.
Returns:
The difference between the strings.
See Also:
difference(FuzzyLexicon)

getStr

public String getStr()
The original string this lexicon represents.

Returns:
The original string this lexicon represents.