A C D E F G H I K M P T W

A

addPhrase(String) - Method in class kwic.KWIC
Convenient interface, accepts a standrd Java String
addPhrase(Phrase) - Method in class kwic.KWIC
For each Word in the Phrase, add the Word to the association.
addPhrases(File) - Method in class kwic.KWIC
Add each line in the file as a phrase.

C

cleanUp(String) - Static method in class kwic.Phrase
Filter the supplied String (which is the String of a Phrase presumably) into a canonical form for subsequent matching.

D

deletePhrase(Phrase) - Method in class kwic.KWIC
For each word in the Phrase, delete the association between the word and the phrase.
deleteWord(Word) - Method in class kwic.KWIC
Drop a word completely from the KWIC
dropAssoc(Word, Phrase) - Method in class kwic.KWIC
Drop the association between the specified Word and Phrase, if any

E

equals(Object) - Method in class kwic.Phrase
The behavior of this lab depends on how you view this method.
equals(Object) - Method in class kwic.Word
You must implement this so that two words equal each other if their matched forms equal each other.

F

forceAssoc(Word, Phrase) - Method in class kwic.KWIC
Force a mapping between the speicified Word and Phrase

G

getMatchWord() - Method in class kwic.Word
The word used for matching is the original word run throgh the WordCanonical filter.
getOriginalWord() - Method in class kwic.Word
 
getPCS() - Method in class kwic.KWIC
Required for part (b) of this lab.
getPhrases(Word) - Method in class kwic.KWIC
Return an Iterator that provides each Phrase associated with the specified Word.
getWords() - Method in class kwic.KWIC
Rerturn an iterator of all words
getWords() - Method in class kwic.Phrase
Provide the words of a phrase.

H

hashCode() - Method in class kwic.Phrase
This method must also be properly defined, or else your HashSet structure won't operate properly.
hashCode() - Method in class kwic.Word
You must implement this right, see header note

I

instance() - Static method in class kwic.WordFilter
Singleton pattern: return one instance, always the same, of this class.

K

kwic - package kwic
 
KWIC - Class in kwic
Key Word in Context
KWIC() - Constructor for class kwic.KWIC
 

M

makeCanonical(String) - Method in class kwic.WordFilter
Filter the supplied String (which is the String of a Word presumably) into a canonical form for subsequent matching.
map - Variable in class kwic.KWIC
 

P

pcs - Variable in class kwic.KWIC
 
Phrase - Class in kwic
Represent a phrase
Phrase(String) - Constructor for class kwic.Phrase
 
phrase - Variable in class kwic.Phrase
 

T

toString() - Method in class kwic.Phrase
 
toString() - Method in class kwic.Word
 

W

Word - Class in kwic
Represents the original and matching forms of a word.
Word(String) - Constructor for class kwic.Word
Represent a word of a Phrase
WordFilter - Class in kwic
A singleton class for filtering words into their canonical form.

A C D E F G H I K M P T W