I wrote a shell function to fetch the Word of the Day from Wordnik.com.
You need to have jq installed as well as a Wordnik developer API key.
I've added it to my .bashrc file so I get the word of the day every time I start a new shell. To save making a request to the API each time a shell is opened I've saved the word of the day in a dotfile in the users home directory. If the dotfile is a day old then it will make a request and update the file.
If the -f
option is provided it will fetch the word of the day anyway and update the dotfile.
# wod() returns the Word of the Day from Wordnik.