syllableCounter property Null safety

SyllableCounter syllableCounter
override

The LatinLanguageAnalyzerMixin implementation of syllableCounter.

Algorithm:

  • Trim leading and trailing white-space from term.
  • Return 0 if resulting term is empty.
  • Split the term using the termSplitter

Implementation

@override
SyllableCounter get syllableCounter => (term) => term.syllableCount;