SyllableCounter typedef

SyllableCounter = int Function(String term)

A language-specific function that returns the number of syllables in a string after stripping out all white-space and punctuation.

Intended for use on words or terms, rather than phrases.

Returns 0 if term.isEmpty.

Implementation

typedef SyllableCounter = int Function(String term);