stemPorter2 method

String stemPorter2([
  1. Map<String, String>? exceptions
])

Reduces the String to its word stem, base or root form. using the Porter2Stemmer English language stemming algorithm.

To implement custom exceptions to the algorithm, provide exceptions where the key is the term and the value is its stem (value).

The default exceptions are Porter2StemmerConstants.kExceptions.

This is a shortcut to Porter2Stemmer.stem function.

Implementation

String stemPorter2([Map<String, String>? exceptions]) =>
    Porter2Stemmer(exceptions: exceptions).stem(this);