Interface DictEntries
public interface DictEntries
An object representing homonym dictionary entries. Note that the order of entries here may differ
from the order in the *.dic file!
-
Method Summary
Modifier and TypeMethodDescriptiongetMorphologicalData
(int entryIndex) getMorphologicalValues
(int entryIndex, String key) int
size()
-
Method Details
-
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() - 1
and these indices can be passed into other methods of this class.
-
getMorphologicalData
- Parameters:
entryIndex
- an index from 0 (inclusive) tosize()
(exclusive)- Returns:
- morphological fields (of
kk:vvvvvv
form, sorted, space-separated, excludingph:
) associated with the homonym at the given entry index, or an empty string
-
getMorphologicalValues
- 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
vvvvvv
form) of morphological fields with the given key associated with the homonym at the given entry index
-