Class DictEntry


  • public abstract class DictEntry
    extends Object
    An object representing *.dic file entry with its word, flags and morphological data.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getStem

        public String getStem()
        Returns:
        the stem word in the dictionary
      • getFlags

        public abstract String getFlags()
        Returns:
        the flags associated with the dictionary entry, encoded in the same format as in the *.dic file, but possibly in a different order
      • getMorphologicalData

        public abstract String getMorphologicalData()
        Returns:
        morphological fields (of kk:vvvvvv form, sorted, space-separated, excluding ph:) associated with the homonym at the given entry index, or an empty string
      • getMorphologicalValues

        public List<String> getMorphologicalValues​(String key)
        Parameters:
        key - the key in the form kk: 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