sS ai_remergeWordSuffixes(Set suffixes, S input) { ret joinAdjacentTokensIf(input, (a, b) -> contains(suffixes, b) && isWordish(a)); }