static bool endsWithPunctuation(S s) { ret nempty(s) && contains(".!?", lastChar(s)); }