isHyphenated static method
Returns true if the term
contains one or more hyphens.
A hypenation is a single dash character preceded and followed by a word boundary.
Implementation
static bool isHyphenated(String term) =>
RegExp(kHypenations).allMatches(term).isNotEmpty;