Você pode usar o Wordnet . O utilitário de linha de comando wn
inclui recursos do dicionário de sinônimos.
$ wn glow -n1 -synsv
Synonyms/Hypernyms (Ordered by Estimated Frequency) of verb glow
Sense 1
glow
=> radiate
$ wn slow -n2 -antsa
Antonyms of adj slow
Sense 2
slow (vs. fast)
fast (vs. slow)
=> allegro
=> allegretto
=> andantino
=> presto
=> prestissimo
=> vivace
Esta página mostra um script que você pode usar que usa lynx
e dictionary.com .
#!/bin/sh
#--------
# Command line thesaurus
BROWSER="/usr/bin/lynx -source"
WEBSITE="http://thesaurus.reference.com/search?q=$1"
HTML2TEXT="/usr/bin/html2text -style compact"
if test $1; then
${BROWSER} ${WEBSITE} | ${HTML2TEXT} | ${PAGER}
else
echo "Usage: $0 word"
exit 1
fi
To use this script, name it thes, make it executable, and make sure that it's in your $PATH. Then, run the script followed by the word you're interested in. Code Listing 2
$ thes word