Interface DictEntries
-
public interface DictEntriesAn object representing homonym dictionary entries. Note that the order of entries here may differ from the order in the *.dic file!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMorphologicalData(int entryIndex)List<String>getMorphologicalValues(int entryIndex, String key)intsize()
-
-
-
Method Detail
-
size
int size()
- Returns:
- a positive number of dictionary entries with the same word. Most often it's 1 (unless
there are homonyms). Entries are indexed from 0 to
size() - 1and these indices can be passed into other methods of this class.
-
getMorphologicalData
String getMorphologicalData(int entryIndex)
- Parameters:
entryIndex- an index from 0 (inclusive) tosize()(exclusive)- Returns:
- morphological fields (of
kk:vvvvvvform, sorted, space-separated, excludingph:) associated with the homonym at the given entry index, or an empty string
-
getMorphologicalValues
List<String> getMorphologicalValues(int entryIndex, String key)
- Parameters:
entryIndex- an index from 0 (inclusive) tosize()(exclusive)key- the key in the formkk:by which to filter the morphological fields- Returns:
- the values (of
vvvvvvform) of morphological fields with the given key associated with the homonym at the given entry index
-
-