Class KoelnDic

java.lang.Object
  extended byKoelnDic

class KoelnDic
extends java.lang.Object

This class contains all the nexessary information from the dictionary. The dictionarys are initialized in a {static} routine. They are loaded from specific files and saved in HashMaps. Some tags are translated within this class - when analysation is not possible or unnecessary (punctuation, numbers, etc). The translation process is started by the startlookup method.

Author:
Arthur Laub Arthur.Laub@urz.uni-hd.de Project: Kölschifier.

Field Summary
private static java.util.HashMap ADJECTIVE
           
private static java.util.HashMap ADVERB
           
private static java.util.HashMap APPO
           
private static java.util.HashMap APPR
           
private static java.util.HashMap APPRART
           
private static java.util.HashMap APZR
           
private static java.util.HashMap KOKOM
           
private static java.util.HashMap KON
           
private static java.util.HashMap KOUI_KOUS
           
private static java.util.HashMap NOMEN
           
private static java.util.HashMap PAV
           
private static java.util.HashMap PDS
           
private static java.util.HashMap PTKA_PTKANT_PTNEG
           
private static java.util.HashMap PTKVZ
           
private static java.util.HashMap PWAV
           
static java.lang.String[] Substantiv2
           
private static java.util.HashMap VAFIN
           
private static java.util.HashMap VERB
           
 
Constructor Summary
(package private) KoelnDic()
           
 
Method Summary
static java.lang.String checkAdjective(java.lang.String hg_adjective)
          checks a Highgerman adjective in the HashMap ADJECTIVE
static boolean checkPDS(Word word)
           
static boolean checkSubstantiv2(java.lang.String hg_substantiv)
          This method checks wheter a Highgerman lemma belongs to the group of "Substantiv2" or not.
private static boolean lookupADV(Word word)
          lookupADV checks an ADV-tagged word in the HashMap ADVERB
private static boolean lookupAPPO(Word word)
          lookupAPPO checks an APPO-tagged word in the HashMap APPO
private static boolean lookupAPPR(Word word)
          lookupAPPR checks an APPR-tagged word in the HashMap APPR
private static boolean lookupAPPRART(Word word)
          lookupAPPRART checks an APPRART-tagged word in the HashMap APPRART
private static boolean lookupAPZR(Word word)
          lookupAPZR checks an APZR-tagged word in the HashMap APZR
private static boolean lookupKOKOM(Word word)
          lookupKOKOM checks a KOKOM-tagged word in the HashMap KOKOM
private static boolean lookupKON(Word word)
          lookupKON checks a KON-tagged word in the HashMap KON
private static boolean lookupKOUI_KOUS(Word word)
          lookupKOUI_KOUS checks a KOUI or KOUS -tagged word in the HashMap KOUI_KOUS
private static boolean lookupNN_NE(Word word)
          lookupNomen checks a highgerman nomen in the HashMap NOMEN
private static boolean lookupPAV(Word word)
          lookupPAV checks a PAV-tagged word in the HashMap PAV
private static boolean lookupPDS(Word word)
          lookupPDS checks a PDS-tagged word in the HashMap PDS
private static boolean lookupPTKA_PTKANT_PTNEG(Word word)
          lookupPTKA_PTKANT_PTNEG checks a PTKA_PTKANT_PTNEG -tagged word in the HashMap PTKA_PTKANT_PTNEG
private static boolean lookupPTKVZ(Word word)
          lookupPTKVZ checks a PTKVZ-tagged word in the HashMap PTKVZ
private static boolean lookupPWAT(Word word)
          lookupPWAT checks a PWAT-tagged word in the HashMap PWAT
private static boolean lookupPWAV(Word word)
          lookupPWAV checks a PWAV-tagged word in the HashMap PWAV
private static boolean lookupVAFIN(Word word)
          lookupVAFIN checks an auxiliar-verb in the HashMap VAFIN.
private static boolean lookupVVFIN(Word word)
           
private static boolean lookupVVIMP_VAIMP(Word word)
          lookupVVIMP_VAIMP checks a highgerman verb-imperativ in the HashMap VERB if a corresponding verb is found, the verb.imperativ is set as the cologne translation.
private static boolean lookupVVINF_VAINF_VMINF(Word word)
          lookupVVINF_VAINF_VMINF checks a highgerman verb-infinitiv in the HashMap VERB if a corresponding verb is found, the verb.infinitiv is set as the cologne translation.
private static boolean lookupVVPP_VAPP_VMPP(Word word)
          lookupVVPP_VAPP_VMPP checks a highgerman verb-partizip in the HashMap VERB if a corresponding verb is found, the verb.partizip is set as the cologne translation.
private static boolean lookupWord(Word word)
           
static void startlookup(java.util.ListIterator li)
          startlookup is the initial call for the KoelnDic class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADJECTIVE

private static final java.util.HashMap ADJECTIVE

ADVERB

private static final java.util.HashMap ADVERB

APPO

private static final java.util.HashMap APPO

APPR

private static final java.util.HashMap APPR

APPRART

private static final java.util.HashMap APPRART

APZR

private static final java.util.HashMap APZR

KOKOM

private static final java.util.HashMap KOKOM

KON

private static final java.util.HashMap KON

KOUI_KOUS

private static final java.util.HashMap KOUI_KOUS

NOMEN

private static final java.util.HashMap NOMEN

PAV

private static final java.util.HashMap PAV

PDS

private static final java.util.HashMap PDS

PTKA_PTKANT_PTNEG

private static final java.util.HashMap PTKA_PTKANT_PTNEG

PTKVZ

private static final java.util.HashMap PTKVZ

PWAV

private static final java.util.HashMap PWAV

Substantiv2

public static java.lang.String[] Substantiv2

VAFIN

private static final java.util.HashMap VAFIN

VERB

private static final java.util.HashMap VERB
Constructor Detail

KoelnDic

KoelnDic()
Method Detail

checkAdjective

public static final java.lang.String checkAdjective(java.lang.String hg_adjective)
checks a Highgerman adjective in the HashMap ADJECTIVE

Parameters:
hg_adjective -
Returns:
the Cologne translation or lemma

checkPDS

public static final boolean checkPDS(Word word)

checkSubstantiv2

public static final boolean checkSubstantiv2(java.lang.String hg_substantiv)
This method checks wheter a Highgerman lemma belongs to the group of "Substantiv2" or not. The "Substantiv2" is very hard to analyse with morphological methods (it's suffix is "en" in almost every kasus).

Parameters:
hg_substantiv -
Returns:
true, if the Highgerman lemma is a Substantiv2

lookupADV

private static final boolean lookupADV(Word word)
lookupADV checks an ADV-tagged word in the HashMap ADVERB

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupAPPO

private static final boolean lookupAPPO(Word word)
lookupAPPO checks an APPO-tagged word in the HashMap APPO

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupAPPR

private static final boolean lookupAPPR(Word word)
lookupAPPR checks an APPR-tagged word in the HashMap APPR

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupAPPRART

private static final boolean lookupAPPRART(Word word)
lookupAPPRART checks an APPRART-tagged word in the HashMap APPRART

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupAPZR

private static final boolean lookupAPZR(Word word)
lookupAPZR checks an APZR-tagged word in the HashMap APZR

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupKOKOM

private static final boolean lookupKOKOM(Word word)
lookupKOKOM checks a KOKOM-tagged word in the HashMap KOKOM

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupKON

private static final boolean lookupKON(Word word)
lookupKON checks a KON-tagged word in the HashMap KON

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupKOUI_KOUS

private static final boolean lookupKOUI_KOUS(Word word)
lookupKOUI_KOUS checks a KOUI or KOUS -tagged word in the HashMap KOUI_KOUS

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupNN_NE

private static final boolean lookupNN_NE(Word word)
lookupNomen checks a highgerman nomen in the HashMap NOMEN

Parameters:
word -
Returns:
true, when translation found

lookupPAV

private static final boolean lookupPAV(Word word)
lookupPAV checks a PAV-tagged word in the HashMap PAV

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupPDS

private static final boolean lookupPDS(Word word)
lookupPDS checks a PDS-tagged word in the HashMap PDS

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupPTKA_PTKANT_PTNEG

private static final boolean lookupPTKA_PTKANT_PTNEG(Word word)
lookupPTKA_PTKANT_PTNEG checks a PTKA_PTKANT_PTNEG -tagged word in the HashMap PTKA_PTKANT_PTNEG

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupPTKVZ

private static final boolean lookupPTKVZ(Word word)
lookupPTKVZ checks a PTKVZ-tagged word in the HashMap PTKVZ

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupPWAT

private static final boolean lookupPWAT(Word word)
lookupPWAT checks a PWAT-tagged word in the HashMap PWAT

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupPWAV

private static final boolean lookupPWAV(Word word)
lookupPWAV checks a PWAV-tagged word in the HashMap PWAV

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupVAFIN

private static final boolean lookupVAFIN(Word word)
lookupVAFIN checks an auxiliar-verb in the HashMap VAFIN. All the information of the auxiliar-verb (saved in the class Verb_vafin) are set in word. So the tempus, person and the translation is set to word.

Parameters:
word -
Returns:
true, when translation found

lookupVVFIN

private static final boolean lookupVVFIN(Word word)

lookupVVIMP_VAIMP

private static final boolean lookupVVIMP_VAIMP(Word word)
lookupVVIMP_VAIMP checks a highgerman verb-imperativ in the HashMap VERB if a corresponding verb is found, the verb.imperativ is set as the cologne translation.

Parameters:
word - (Highgerman Input)
Returns:
true, if translation was successful.

lookupVVINF_VAINF_VMINF

private static final boolean lookupVVINF_VAINF_VMINF(Word word)
lookupVVINF_VAINF_VMINF checks a highgerman verb-infinitiv in the HashMap VERB if a corresponding verb is found, the verb.infinitiv is set as the cologne translation.

Parameters:
word -
Returns:
true, when translation found

lookupVVPP_VAPP_VMPP

private static final boolean lookupVVPP_VAPP_VMPP(Word word)
lookupVVPP_VAPP_VMPP checks a highgerman verb-partizip in the HashMap VERB if a corresponding verb is found, the verb.partizip is set as the cologne translation.

Parameters:
word -
Returns:
true, when translation found

lookupWord

private static final boolean lookupWord(Word word)

startlookup

public static final void startlookup(java.util.ListIterator li)
startlookup is the initial call for the KoelnDic class. The input of words (given by the ListIterator of the ArrayList of words) is searched through. Some tags (which do not need analysation) are already proceeded here. A prompt shows the success or non-success of translation

Parameters:
li - (list of words)