0.2.1 • Published 12 months ago

wordage v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
12 months ago

Wordage

Wordage is a node script capable of generating a list of words that are currently available NPM packages.

The list of words is pulled from a modified version of the wonderful WebstersEnglishDictionary and from the awesome datamuse API.

Getting started

# Find 50 random words that relate to the word "dog" and that are
# available as package names on NPM

npx wordage means dog
# Find 20 random words from the dictionary that are 6 characters or
# less and that are available as package names on NPM

npx wordage search --limit=20 --max-word-length=6
# Find 50 random words that relate to the word "cat"

npx wordage means cat --filter=none

An HTTP request has to be made for each word, so larger data sets can be time consuming. You can skip the wait by using the pre-compiled lists in the out/ directory.

If you're in the middle of a long running process though, you can terminate it at any time and so long as you've passed the --write flag, the names processed so far will still be written to the file.

Commands

Wordage currently supports two commands. Both commands have the same list of options.

wordage search

Search for words from a dictionary.

wordage means <subject>

Search for words with a similar meaning to another word.

Options

OptionDefaultDescription
--limit, -l50The number of results to generate
--batch-size, -b20The number of HTTP requests to have out at once
--max-word-length, -m-Limit results to words of a certain length
--write, -wPrint to stdoutInstead of printing to to the console, write results to a file
--predictable, -pfalseInstead of searching with some randomness, give repeatable results
--filter, -fnpmFilter the results to only names available on a particular platform. Options are npm or none.