Interface Stemmer.RootProcessor

  • Enclosing class:
    Stemmer

    static interface Stemmer.RootProcessor
    • Method Detail

      • processRoot

        boolean processRoot​(CharsRef stem,
                            int formID,
                            int morphDataId,
                            int outerPrefix,
                            int innerPrefix,
                            int outerSuffix,
                            int innerSuffix)
        Parameters:
        stem - the text of the found dictionary entry
        formID - internal id of the dictionary entry, e.g. to be used in Dictionary.hasFlag(int, char)
        morphDataId - the id of the custom morphological data (0 if none), to be used with Dictionary.morphData
        outerPrefix - the id of the outer prefix applied to the stem, or -1 if none
        innerPrefix - the id of the inner prefix applied to the stem, or -1 if none
        outerSuffix - the id of the outer suffix applied to the stem, or -1 if none
        innerSuffix - the id of the inner suffix applied to the stem, or -1 if none
        Returns:
        whether the processing should be continued