List of ~240,000 English words. Derived from the Dehkhoda dictionary.
npm:
npm install an-array-of-persian-wordsvar words = require('an-array-of-persian-words')
console.log(words.filter(d => /آب/.test(d)))Yields:
[
'آب',
'آب آسیا',
'آب آشنا',
'آب آلو',
'آب آمیخته',
'آب آورد',
'آب آورده',
'آب آهک',
// …and many more
]Array.<string> — List of all Persian words, according to dehkhoda dictionary.
Install the CLI globally:
npm i -g an-array-of-persian-wordsNow run words to print all the words to stdout:
wordsUse grep to filter by pattern:
words | grep 'آفتاب'Use egrep to filter with regular expressions:
words | egrep '^آب' # start with 'آب'
words | egrep 'دان$' # end with 'دان'
words | egrep 'ان?ت$' # end in 'ان' or 'ت'Use wc to find out how many شهر words there are:
words | grep 'شهر' | wc -lTen random ten-letter words (note: on macOS, do brew install coreutils to get
gshuf):
$ words | egrep '^.{10}$' | gshuf | head -10