isAcronym function
Returns true if the token is likely an acronym (all caps).
Implementation
bool isAcronym(String token) {
if (token.length < minAcronymTokenLength) return false;
final String alpha = token.replaceAll(RegExp(r'[^A-Za-z]'), '');
return alpha.isNotEmpty && alpha == alpha.toUpperCase();
}