Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

wordlist-js

jordanshatford229MIT2.0.0TypeScript support: included

A package to provide common English words from various nationalities.

typescript, words, english, american, australian, british, britishZ, canadian, words, wordslist, wordlist, scrabble, wordle

readme


Logo

wordlist-js

Lists of filtered words from various English dialects.
www.npmjs.com/package/wordlist-js »

wordlist-js provides lists of English words based on how common they are used. It also provides words for many English dialects.

Available Words Lists

See the project config for information on dialects and frequencies generated. Alternatively see the dist folder for type declaration files.

SCOWL

This project and words lists are based on SCOWL.

When manually combining the words lists the "english" spelling category should be used as well as one of "american", "british", "britishZ" (british with ize spelling), "canadian" or "australian".

Size 35 is the recommended small size, 50 the medium and 70 the large. Sizes 70 and below contain words found in most dictionaries while the 80 size contains all the strange and unusual words people like to use in word games such as Scrabble (TM). While a lot of the words in the 80 size are not used very often, they are all generally considered valid words in the English language. The 95 contains just about every English word in existence and then some. Many of the words at the 95 level will probably not be considered valid English words by most people.

For spell checking it is recommend to use size 60. The 70 size is reasonable for those wanting a larger list and don't mind a few errors. The 80 or larger sizes are not reasonable for spell checking.

changelog

wordlist-js

2.0.0

Major Changes

Minor Changes

Patch Changes

1.8.0

Minor Changes

  • feat: add helper function for generating array of elements export (56dd8fd)

  • feat: generate list of all bad words for each dialect (293544c)

  • feat: use typescript compiler api to generate dist code (9d96a90)

  • feat: simplify words list processing (27c7923)

1.7.1

Patch Changes

  • fix: properly export from each dialect causing breaking change (8152abf)

1.7.0

Minor Changes

  • feat: store words lists as json and get rid of scowl (see #96) (0af1303)

  • feat: simply checking if word is in bad word list (6854893)

  • feat: only filter out exact words listed instead of regexs (594abdc)

  • feat: export bad words separately (see #92) (277f02c)

  • feat: use wordlist.config.json when generating build (822e247)

  • feat: replace bad-words with our own list (as it is unmaintained) (f050336)

  • feat: better bad word matching to cleanup many missed words (932aa75)

Patch Changes

  • fix: remove duplicates from bad words list (8e0fdae)

1.6.0

Minor Changes

  • feat: add release ci workflow using changesets (2c4ed28)

  • feat: use pnpm instead of npm (see #99) (11c5b7f)

Patch Changes

  • chore: replace semantic-release with changesets (132bc64)