Skip to content

A CLI tool for looking up definitions of English words

License

Notifications You must be signed in to change notification settings

elunico/WordnikCLI2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordnikCLI2

A re-implementation of most of my WordnikCLI project to address some issues

The original program was a simple command-line tool for getting definitions for English words. I made it as sort of an inspiration to man pages. I thought of it like man pages for English words.

I was unsatisfied with how I wrote the original version and it had some issues that I could not work out because of the nature of how the program was put together. I took on a rewrite and ended up simplifying parts of it greatly as well as eliminating the issues it had.

The entire program was not, however, rewritten, as of yet. define.py was copied from the original project as the issues were entirely around the Screen and BufferedScreen classes. define.py was modified to work with the new Screen class. I cleaned up define.py enough that I do not think it needs to be rewritten. Similarly, web.py is a small file and was taken as is, but types were added.

Notes

  • This program uses BeautifulSoup, the Wordnik API (currently does scraping, but API use will be used in the future), requests (for python) to give simple definitions for English words on the command line.

  • You can customize the colors of the interface by modifying colors.json as you please

Examples

./define.py happy

Alt Text Alt Text Alt Text

./define.py alabaster

Alt Text Alt Text

./define.py akshun

Alt Text Alt Text

About

A CLI tool for looking up definitions of English words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages