english_words 3.1.5

english_words #

Build status

A package containing the most ~5000 used English words and some utility functions.

Usage #

Printing the top 50 most used nouns in the English language:

import 'package:english_words/english_words.dart';

main() {

Computing number of syllables in a word:

syllables('beautiful');  // 3
syllables('abatement');  // 3
syllables('zoology');  // 4

Generating 5 interesting 2-syllable word combinations:


Features and bugs #

Please file feature requests and bugs at the issue tracker.

3.1.5 #

  • Remove optional new and const

3.1.4 #

  • Bug fix: Remove duplicates from all

3.1.3 #

  • Update dependency of pkg:test to 1.0

3.1.1 #

  • Allow Dart 2

3.1.0 #

  • Allow injecting Random to generateWordPairs()
  • Add WordPair.random() constructor for easier creation of a single word combo

3.0.1 #

  • Fix bug that made an unsafe word get generated despite ban

3.0.0 #

  • BREAKING: WordPair constructor is no longer const
  • BREAKING: WordPair will reject words that are null or empty
  • Add .asCamelCase, .asPascalCase, .asLowerCase and .asUpperCase getters to WordPair. These are memoized, so they're faster to access.
  • Add 'sex' to unsafe words
  • Stricter strong mode turned on
  • Lints resolved

2.0.4 #

  • Make generateWordPairs 10-20x faster for the most common use case (i.e. running the function with all named parameters at default values).

2.0.3 #

  • Add 'rape' to unsafe words

2.0.2 #

  • Add 'AIDS' to unsafe words

2.0.1 #

  • Update README with refactor to generateWordPairs

2.0.0 #

  • The generateCombo() function has been renamed to generateWordPairs()
  • generateWordPairs() takes a safeOnly named argument. If set to true (default), it will avoid wordpairs like "ballsack" or anything containing "ass", "shit", "fucking", etc.
  • Add benchmark for GenerateWordPair()
  • Add exception for "cruel"

1.1.2 #

  • Fix exceptions like "poet" and "conscious"

1.1.1 #

  • Fix words like "dying" and "flying" to be disyllabic

1.1.0 #

  • Use string_scanner instead of RegExp replace for most syllable counting
  • 400% faster syllable counting

1.0.0 #

  • Make the syllables() function work on 99+% cases
  • semver guarantee

0.0.1 #

  • Initial version


// Copyright (c) 2017, filiph. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:english_words/english_words.dart';

void main() {

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  english_words: ^3.1.5

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:english_words/english_words.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Sep 13, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:english_words/english_words.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.22.0 <3.0.0
string_scanner ^1.0.1 1.0.5
Transitive dependencies
charcode 1.1.2
meta 1.1.7
path 1.6.4
source_span 1.5.5
term_glyph 1.1.0
Dev dependencies
benchmark_harness ^1.0.4
test ^1.0.0