mostlyPunctuation method

bool mostlyPunctuation()

Returns true if the token is primarily punctuation/symbols.

Implementation

bool mostlyPunctuation() {
  final int total = letters + digits + punctuation;
  if (total == 0) return false;
  return punctuation > (letters + digits);
}