edu.northwestern.at.wordhoard.swing.calculator.modelutils
Interface WordCounterInterface


public interface WordCounterInterface

Word form counter interface.


Method Summary
 int getTotalWordFormCount(int wordForm)
          Get total word count for word form type.
 int getWordFormCount(java.lang.String word, int wordForm)
          Get count of a word form.
 java.util.Map[] getWordFormCountByYear(java.lang.String word, int wordForm)
          Get word form and its counts by year.
 java.util.Map getWordFormsAndCounts(int wordForm)
          Get all word forms and their counts.
 

Method Detail

getWordFormCount

int getWordFormCount(java.lang.String word,
                     int wordForm)
Get count of a word form.

Parameters:
word - The word form whose count is desired.
wordForm - The type of word form as specified in WordForms.
Returns:
The count of times the word form appears.

getWordFormsAndCounts

java.util.Map getWordFormsAndCounts(int wordForm)
Get all word forms and their counts.

Parameters:
wordForm - The type of word form as specified in WordForms.
Returns:
Map containing each word form as a key and the count of the word form as the value.

getTotalWordFormCount

int getTotalWordFormCount(int wordForm)
Get total word count for word form type.

Parameters:
wordForm - The type of word form as specified in WordForms.
Returns:
The total count of the word form type.

getWordFormCountByYear

java.util.Map[] getWordFormCountByYear(java.lang.String word,
                                       int wordForm)
Get word form and its counts by year.

Parameters:
word - The word form whose count is desired.
wordForm - The type of word form as specified in WordForms.
Returns:
Two maps. The first has the year as as key and the word count as a value. The second has the year as a key and the work count as a value.