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