isIdentifier property
bool
get
isIdentifier
Returns true if:
- the String is all aupper case (e.g. TSLA); or
- the lowercase version of the String contains any Porter2StemmerConstants.rEnglishNonWordChars.
Implementation
bool get isIdentifier =>
toUpperCase() == this ||
RegExp(Porter2StemmerConstants.rEnglishNonWordChars)
.allMatches(this)
.isNotEmpty;