ca.uottawa.balie
Class AbbreviationLookup

java.lang.Object
  extended by ca.uottawa.balie.AbbreviationLookup

public class AbbreviationLookup
extends java.lang.Object

Wraps around a hashtable that contains a list of abbreviation. Also offers IsAbbreviation function that uses some heuristics.

Author:
nadeaud

Constructor Summary
AbbreviationLookup(LanguageSpecific pi_LanguageSpecific)
          Initializes the hashtable with the language specific abbreviations.
 
Method Summary
 boolean IsAbbreviation(java.lang.String pi_Word)
          Check if a word is an abbreviation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbbreviationLookup

public AbbreviationLookup(LanguageSpecific pi_LanguageSpecific)
Initializes the hashtable with the language specific abbreviations.

Parameters:
pi_LanguageSpecific - A languageSpecific object (French, English, Spanish...)
Method Detail

IsAbbreviation

public boolean IsAbbreviation(java.lang.String pi_Word)
Check if a word is an abbreviation. Lookup in hashtable and uses heuristics.

Parameters:
pi_Word - The string to test
Returns:
True if the word is an abbreviation