# an-array-of-english-words

> List of ~275,000 English words

Latest version **2.0.0** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install an-array-of-english-words
pnpm add an-array-of-english-words
yarn add an-array-of-english-words
bun add an-array-of-english-words
```

Provides the commands `words`, `an-array-of-english-words`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-02-13 |
| First published | 2014-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 241 |
| Author | Zeke Sikelianos |
| Maintainers | wooorm, zeke |
| Keywords | array, list, english, words, word |

## Links

- npm: https://www.npmjs.com/package/an-array-of-english-words
- Repository: https://github.com/words/an-array-of-english-words
- Homepage: https://github.com/words/an-array-of-english-words#readme
- Issues: https://github.com/words/an-array-of-english-words/issues
- npm.io page: https://npm.io/package/an-array-of-english-words

## Recent versions

- 2.0.0 (latest) — 2020-02-13
- 1.3.1 — 2017-09-23
- 1.3.0 — 2017-09-03
- 1.2.2 — 2017-08-21
- 1.2.1 — 2017-08-21
- 1.2.0 — 2016-12-16
- 1.1.0 — 2016-06-05
- 1.0.1 — 2015-03-27
- 1.0.0 — 2014-09-01

## README

# `an-array-of-english-words`

[![Build][build-badge]][build]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]

List of ~275,000 English words.
Derived from [the Letterpress word list][letterpress].

## Install

[npm][]:

```sh
npm install an-array-of-english-words
```

## Use

```js
var words = require('an-array-of-english-words')

console.log(words.filter(d => /fun/.test(d)))
```

Yields:

```js
[
  'antifungal',
  'antifungals',
  'bifunctional',
  'cofunction',
  'cofunctions',
  // …and many more
]
```

## API

### `anArrayOfEnglishWords`

`Array.<string>` — List of all English words, lowercased.

## CLI

Install the CLI globally:

```sh
npm i -g an-array-of-english-words
```

Now run `words` to print all the words to stdout:

```sh
words
```

Use `grep` to filter by pattern:

```sh
words | grep cheese
```

Use `egrep` to filter with regular expressions:

```sh
words | egrep '^fun'            # start with 'fun'
words | egrep 'ification$'      # end with 'ification'
words | egrep 'ou?r$'           # end in 'or' or 'our'
```

Use `wc` to find out how many `monkey` words there are:

```sh
words | grep monkey | wc -l
```

Ten random ten-letter words (note: on macOS, do `brew install coreutils` to get
[`gshuf`][shuf]):

```sh
$ words | egrep '^.{10}$' | gshuf | head -10
```

## Related

*   [`similar-english-words`](https://github.com/words/similar-english-words)
*   [`an-array-of-spanish-words`](https://github.com/words/an-array-of-spanish-words)
*   [`an-array-of-french-words`](https://github.com/words/an-array-of-french-words)

## License

[MIT][license] © [Zeke Sikelianos][author]

<!-- Definition -->

[build-badge]: https://img.shields.io/travis/words/an-array-of-english-words.svg

[build]: https://travis-ci.org/words/an-array-of-english-words

[downloads-badge]: https://img.shields.io/npm/dm/an-array-of-english-words.svg

[downloads]: https://www.npmjs.com/package/an-array-of-english-words

[size-badge]: https://img.shields.io/bundlephobia/minzip/an-array-of-english-words.svg

[size]: https://bundlephobia.com/result?p=an-array-of-english-words

[npm]: https://docs.npmjs.com/cli/install

[license]: license

[author]: http://zeke.sikelianos.com

[letterpress]: https://github.com/lorenbrichter/Words

[shuf]: https://en.wikipedia.org/wiki/Shuf

---
_Source: https://npm.io/package/an-array-of-english-words · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
