0.0.0-development • Published 7 years ago
an-array-of-dutch-words v0.0.0-development
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 --saveThen:
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-wordsRun words to print all the words to stdout:
wordsUse grep to filter by pattern:
words | grep cheeseUse 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 -lTen random ten-letter words:
$ words | egrep '^.{10}$' | gshuf | head -10Note: On macOS, brew install coreutils to get
gshuf and other goodies.
See Also
0.0.0-development
7 years ago