TermFilter typedef Null safety
A filter function that returns a collection of terms from term:
- return an empty collection if the term is to be excluded from analysis;
- return multiple terms if the term is split; and/or
- return modified term(s), such as applying a stemmer algorithm.
Implementation
typedef TermFilter = Future<List<String>> Function(Term term);