First, make sure you have aspell and curl installed, then simply paste the following functions into your .bashrc file:
function dictlookup
{
curl dict://dict.org/d:$1
}function spellcheck
{
echo "$1" | aspell -a -c | grep "&"
}
Now you can do things like this:
> spellcheck antecedant
and:
> dictlookup antecedent
Enjoy!