english_words library Null safety

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.
['other', 'new', 'good', 'high', 'old', 'great', 'big', 'American', 'small', 'large', 'national', 'young'…
all → const List<String>
Lists 5000 top English words.
['the', 'be', 'and', 'of', 'a', 'in', 'to', 'have', 'it', 'I', 'that', 'for', 'you', 'he'…
maxSyllablesDefault → const int
The default value of the maxSyllables parameter of the generateWordPairs function.
2
nouns → const List<String>
Lists top English nouns.
['time', 'year', 'people', 'way', 'day', 'man', 'thing', 'woman', 'life', 'child', 'world', 'school', &#…
safeOnlyDefault → const bool
The default value of the safeOnly parameter of the generateWordPairs function.
true
topDefault → const int
The default value of the top parameter of the generateWordPairs function.
10000

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.