0.0.0-development • Published 6 years ago

an-array-of-dutch-words v0.0.0-development

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

an-array-of-dutch-words

This is a Dutch fork of an-array-of-english-words by Zeke.

An array of ~164,000 Dutch words derived from the Opentaal word list. Works with node and browserify.

Programmatic Usage

To use the module in Javascript code, install it locally:

npm install an-array-of-dutch-words --save

Then:

const words = require('an-array-of-dutch-words')
const funWords = words.filter(word => word.match(/^fun/i))
console.log(funWords)

Command Line Usage

There's a CLI that prints all words to STDOUT. Install it globally:

npm i -g an-array-of-dutch-words

Run words to print all the words to stdout:

words

Use grep to filter by pattern:

words | grep cheese

Use egrep to filter with regular expressions:

words | egrep '^fun'            # start with 'fun'
words | egrep 'ification$'      # end with 'ification'
words | egrep 'ou?r$'           # end in 'or' or 'our'

Use wc to find out how many monkey words there are:

words | grep monkey | wc -l

Ten random ten-letter words:

$ words | egrep '^.{10}$' | gshuf | head -10

Note: On macOS, brew install coreutils to get gshuf and other goodies.

See Also