builtinwordlist
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Append It Word List

A built-in word list for word games.

Why?

I have a word game project written in Javascript. The hardest part of the project is finding a good word list that contains enough words to use in a word game. This task takes a lot of time and makes me feel boring. Without the list, my game can't be played, so I had to do that boring task and collected a good word list. I converted it into a Javascript module so I can use it for later projects. Anyone who hates that boring task can use this too.

What?

This list contains about 28.000 English words. It's not perfect, but it can save your time. You use the list through BuiltInWordList object.

How?

The main actor of the module is BuiltInWordList.

Methods

Name Parameters Returns Description
has word - string boolean Check if the word is in the list, ignore case-sensitive
random string Get a random word from the list

Example

import BuiltInWordList from "builtinwordlist";

BuiltInWordList.has("good"); // true
BuiltInWordList.has("distroi"); // false

const randomWord = BuiltInWordList.random();

Readme

Keywords

Package Sidebar

Install

npm i builtinwordlist

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

478 kB

Total Files

8

Last publish

Collaborators

  • phandungtri