3.0.16 • Published 21 days ago

@skedwards88/word_lists v3.0.16

Weekly downloads
-
License
CC-BY-NC
Repository
github
Last release
21 days ago

Word Lists

This project takes several word lists and compiles them to a list of common words and a list of less common words.

npm

https://www.npmjs.com/package/@skedwards88/word_lists

Appreciation

Thanks to:

Usage

To use the word lists, npm install @skedwards88/word_lists.

You can import all of the words or a subset of words by length. For example import {commonWords, uncommonWordsLen4} from "@skedwards88/word_lists";. The exports are:

ExportDescription
commonWordsAll common words
commonWordsLen2All common words of length 2
commonWordsLen3All common words of length 3
commonWordsLen4All common words of length 4
commonWordsLen5All common words of length 5
commonWordsLen6All common words of length 6
commonWordsLen7All common words of length 7
commonWordsLen8plusAll common words of length 8+
uncommonWordsAll uncommon words
uncommonWordsLen2All uncommon words of length 2
uncommonWordsLen3All uncommon words of length 3
uncommonWordsLen4All uncommon words of length 4
uncommonWordsLen5All uncommon words of length 5
uncommonWordsLen6All uncommon words of length 6
uncommonWordsLen7All uncommon words of length 7
uncommonWordsLen8plusAll uncommon words of length 8+

Note: Because these word lists use data from from Brysbaert et al, usage is limited to non-commercial usage. You may fork this repository and omit the brysbaert data if you want to use these lists for other purposes.

Contributing

Does compiled/commonWords.txt include a word that you think is not commonly known, or does compiled/uncommonWords.txt include a word that you think is commonly known? Feel free to open a pull request to add the word to compiled/notActuallyCommon.txt or compiled/notActuallyUncommon.txt. Or, feel free to open an issue to request the change. The final word choice is up to the discretion of the repository owner.

Development

Raw word lists

raw/wordnik.txt is an open source word list from Wordnik, plus a few entries that were added as per user request. It contains ~200,000 entries.

raw/wiki.txt is the word frequency on Wikipedia, compiled by https://github.com/IlyaSemenov/wikipedia-word-frequency. It contains ~2.6 million entries, including non-English entries.

raw/gutenberg.txt is the 40,000 most common words on Project Gutenberg, as compiled in the April 16, 2006 list by Wiktionary.

raw/movies.txt is the 10,000 most common words from movies and TV, as compiled in the 2006 list by Wiktionary.

raw/LDNOOBW.txt is the "list of dirty, naughty, obscene, and otherwise bad words" from LDNOOBW, minus multi-word phrases, minus words not in raw/wordnik.txt, minus words that were subjectively deemed to be non-offensive due to a non-slang or scientific meaning, plus variations of words.

raw/brysbaert.txt is the word prevalence data from Brysbaert, M., Mandera, P., McCormick, S.F. et al. Word prevalence norms for 62,000 English lemmas. Behav Res 51, 467–479 (2019). The columns are Word, Pknown, Nobs, Prevalence, FreqZipfUS.

Processed word lists

Files were processed into files that contain words that also exist in the Wordnik list but not the LDNOOBW word list.

processed/wordnik.txt is raw/wordnik.txt minus words from LDNOOBW.txt. processed/wordnik_processor.py is the script that generated this file.

processed/gutenberg.txt is raw/gutenberg.txt minus words that do not exist in processed/wordnik.txt. processed/gutenberg_processor.py is the script that generated this file.

processed/movies.txt is raw/movies.txt minus words that do not exist in processed/wordnik.txt. processed/movies_processor.py is the script that generated this file.

processed/wiki.txt is raw/wiki.txt, minus words with less than 1000 occurrences, minus words that words that do not exist in processed/wordnik.txt. processed/wiki_processor.py is the script that generated this file.

processed/brysbaert.txt is raw/brysbaert.txt, minus words that have a pkonwn of less than 0.96, minus words that words that do not exist in processed/wordnik.txt. processed/brysbaert_processor.py is the script that generated this file.

Compiled word lists

compiled/commonWords.txt consists of words that meet all of the following requirements:

  • common to the processed wordnik, wiki, and gutenberg lists
  • common to the processed wordnik and movies lists
  • common to the processed wordnik and brysbaert lists
  • not on the LDNOOBW.txt list
  • not on the manually compiled compiled/notActuallyCommon.txt list, which contains words that were deemed subjectively not common
  • on the manually compiled compiled/notActuallyUncommon.txt list, which contains words that were deemed subjectively not uncommon

compiled/uncommonWords.json consists of all of the wordnik words that are not in compiled/commonWords.txt, minus words from LDNOOBW.txt.

Additionally, there are corresponding files for 2, 3, 4, 5, 6, 7, and 8+ letter words. For example, compiled/uncommonWordsLen3.json consists of all of the 3-letter words from compiled/uncommonWords.json.

These files were generated by compiled/compile.py.

To keep the package size smaller, only the compiled files are packaged. These are specified under the files key in package.json.

Publishing

The package.yml workflow runs when a change is pushed to main or when the workflow is manually triggered. The workflow builds the files, bumps the package version, and publishes the package to npm.

3.0.16

21 days ago

3.0.15

21 days ago

3.0.14

3 months ago

3.0.9

7 months ago

3.0.12

5 months ago

3.0.4

8 months ago

3.0.13

5 months ago

3.0.3

8 months ago

3.0.10

7 months ago

3.0.2

8 months ago

3.0.11

6 months ago

3.0.1

8 months ago

3.0.8

7 months ago

3.0.7

7 months ago

3.0.6

7 months ago

3.0.5

7 months ago

2.1.16

8 months ago

2.1.17

8 months ago

2.1.14

8 months ago

2.1.15

8 months ago

2.1.12

10 months ago

2.1.13

9 months ago

2.1.11

11 months ago

2.1.10

11 months ago

2.1.9

12 months ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago