Quick script to look up the definition of a word or its synonyms. Useful when working on things like writing or reading news articles.
Run it in the background via command line:
sudo python lexicon.py
When you come across a word you want to look up, copy it to the clipboard:
ctrl + c
If you want to get the definition, use the corresponding shortcut:
ctrl + g + h
If you want to get the synonyms, use the corresponding shortcut:
ctrl + g + y
This action will launch a window with a list definitions/synonyms from the vocabulary.com/synonym.com page pertaining to the word.