public String process(String term) {
        if (stemMode == StemMode.NONE) return term;
        var parameters = new LinguisticsParameters(language, StemMode.SHORTEST, true, true);
        List<StemList> stems = linguistics.getStemmer().stem(term, parameters);
        if (stems.isEmpty()) return term;
        if (stems.get(0).isEmpty()) return term;
        return stems.get(0).get(0);
    }
Processes this term according to the linguistics of this rule base
container-search/src/main/java/com/yahoo/prelude/semantics/engine/RuleBaseLinguistics.java