english_words 4.0.0 english_words: ^4.0.0 copied to clipboard
Utilities for working with English words. Counts syllables, generates well-sounding word combinations, and provides access to the top 5000 English words by usage.
- Bump null safety to stable
- Migrate to null safety
- Remove optional
- Bug fix: Remove duplicates from
- Update dependency of
- Allow Dart 2
- Allow injecting
WordPair.random()constructor for easier creation of a single word combo
- Fix bug that made an unsafe word get generated despite ban
WordPairconstructor is no longer
WordPairwill reject words that are
WordPair. These are memoized, so they're faster to access.
- Add 'sex' to unsafe words
- Stricter strong mode turned on
- Lints resolved
generateWordPairs10-20x faster for the most common use case (i.e. running the function with all named parameters at default values).
- Add 'rape' to unsafe words
- Add 'AIDS' to unsafe words
- Update README with refactor to
generateCombo()function has been renamed to
safeOnlynamed argument. If set to
true(default), it will avoid wordpairs like "ballsack" or anything containing "ass", "shit", "fucking", etc.
- Add benchmark for
- Add exception for "cruel"
- Fix exceptions like "poet" and "conscious"
- Fix words like "dying" and "flying" to be disyllabic
string_scannerinstead of RegExp replace for most syllable counting
- 400% faster syllable counting
- Make the
syllables()function work on 99+% cases
- semver guarantee
- Initial version