A simple Python command-line tool that fetches word definitions using the Free Dictionary API.
- Get definitions, parts of speech, and examples
- Simple CLI interface
- Error handling for invalid or unknown words
- Install dependencies
pip install requests
- Run the script
python dictionary_cli.py
Enter a word (or type 'exit' to quit): example
π Definitions for 'example':
β’ Part of Speech: noun
1. A thing characteristic of its kind or illustrating a general rule.
π Example: "it's a good example of how European action can produce results"
Powered by the Free Dictionary API
This project is open source and free to use under the MIT License.