Obtain A Dictionary Text File
There is a great dictionary list that is available with GNU Aspell (ftp://ftp.gnu.org/gnu/aspell/dict/0index.html) which provides a collection of International ‘words’ files for /usr/share/dict.To install on Arch Linux :
$ pacman -S wordsThere are a number of dictionaries installed under /usr/share/dict/ that you can choose from
$ wc -l /usr/share/dict/usa
119095 /usr/share/dict/usa
$ ls /usr/share/dict/
american-english british british-english catala catalan finnish french german italian ngerman ogerman spanish usa
shuf - generate random permutations
We can use the shuf command to generate random words using a dictionary. Install shuf if its not installed :$ pacman -S shufThen use the n argument to define the number of words you would like e.g.
$ shuf -n5 /usr/share/dict/usaTo easily access this I have an alias :
macroeconomic
visualizes
shabbiest
sen
chortler
alias GenerateRandomWord=’shuf -n5 /usr/share/dict/usa’
No comments:
Post a Comment