Modifies the term and returns the modified version.
typedef TermModifier = String? Function(String term);