npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@skedwards88/word_lists

v3.0.16

Published

Lists of common and uncommon English words.

Downloads

306

Readme

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:

Export | Description --- | --- commonWords | All common words commonWordsLen2 | All common words of length 2 commonWordsLen3 | All common words of length 3 commonWordsLen4 | All common words of length 4 commonWordsLen5 | All common words of length 5 commonWordsLen6 | All common words of length 6 commonWordsLen7 | All common words of length 7 commonWordsLen8plus | All common words of length 8+ uncommonWords | All uncommon words uncommonWordsLen2 | All uncommon words of length 2 uncommonWordsLen3 | All uncommon words of length 3 uncommonWordsLen4 | All uncommon words of length 4 uncommonWordsLen5 | All uncommon words of length 5 uncommonWordsLen6 | All uncommon words of length 6 uncommonWordsLen7 | All uncommon words of length 7 uncommonWordsLen8plus | All 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.