english_words library

Support for working with English text.

Classes

WordPair
Representation of a combination of 2 words, first and second.

Constants

adjectives → const List<String>
Lists top English adjectives.
all → const List<String>
Lists 5000 top English words.
maxSyllablesDefault → const int
The default value of the maxSyllables parameter of the generateWordPairs function.
nouns → const List<String>
Lists top English nouns.
safeOnlyDefault → const bool
The default value of the safeOnly parameter of the generateWordPairs function.
topDefault → const int
The default value of the top parameter of the generateWordPairs function.

Functions

generateWordPairs({int maxSyllables = maxSyllablesDefault, int top = topDefault, bool safeOnly = safeOnlyDefault, Random? random}) Iterable<WordPair>
Randomly generates nice-sounding combinations of words (compounds).
syllables(String word) int
Count syllables in word.