Interface Dictionary
- All Known Subinterfaces:
Abbreviations, Punctuations, StopWords
- All Known Implementing Classes:
EnglishDictionary, EnglishPunctuations, EnglishStopWords, SimpleDictionary
public interface Dictionary
A dictionary is a set of words in some natural language.
-
Method Summary
-
Method Details
-
contains
Returns true if this dictionary contains the specified word.- Parameters:
word- the query word.- Returns:
- true if this dictionary contains the specified word.
-
size
int size()Returns the number of words in this dictionary.- Returns:
- the number of words in this dictionary.
-
iterator
-