ayberkt / thesaurus

Simple thesaurus from the command-line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thesaurus

Simple thesaurus from the command-line using NLTK's WordNet interface.

Building

$ pip install nltk

After NLTK has been installed, you may need to do additional downloads

$ python
>>> import nltk
>>> nltk.download()

Using

$ python thesaurus.py good

Synonyms for "Nice"

Similar to "decent":

=> decent, nice

Similar to "dainty":

=> dainty, nice, overnice, prissy, squeamish

Similar to "courteous":

=> courteous, gracious, nice

Similar to "nice":

=> nice, skillful

You can also get the antonyms for a word by adding a --antonyms arg.

$ python thesaurus.py --antonyms nice

Antonyms for "Attractive"
=> repulsive, unattractive

About

Simple thesaurus from the command-line.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%