Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Contains sets of English words

Project description

PyPI

english-words-py

Contains sets of English words from svnweb.freebsd.org/csrg/share/dic/. This is up to date with revision 61569 of their words list.

There are four sets in this package:

  • english_words_set: A set of English words containing both upper- and lower-case letters; with punctuation.
  • english_words_lower_set: A set of English words containing lower-case letters; with punctuation.
  • english_words_alpha_set: A set of English words containing both upper- and lower-case letters; with no punctuation.
  • english_words_lower_alpha_set: A set of English words containing lower-case letters; with no punctuation.

where the lower set is the same as the english_words_set with all upper-case letters converted to lower-case letters, and where the alpha set is the same as the english_words_set with all apostrophes (') removed. The lower_alpha set intuitively has both of the rules from the lower set and the alpha set applied.

You can use use these like you would any Python set:

>>> from english_words import english_words_set
>>> 'ghost' in english_words_set
True

Installation

Install this with pip with

pip install english-words

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
english-words-1.0.3.tar.gz (352.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page