A simple and interactive command-line English dictionary tool that fetches word meanings, definitions, phonetics, synonyms, and antonyms using the free DictionaryAPI.dev API.
✅ Lookup definitions for any English word
✅ Displays part of speech, phonetics, synonyms, and antonyms
✅ Supports multiple definitions per word
✅ Friendly error handling (network issues, invalid words, etc.)
✅ Works in an interactive loop — look up multiple words without restarting
✅ Lightweight and fast — no GUI or installation overhead
<--<--<---( Dictionary )--->-->-->
Enter the word: great
<>-<>-<>---( Great )---<>-<>-<>
Phonetic: /ɡreɪt/
------( adjective )------
------( Definition 1 )------
Of an extent, amount, or intensity considerably above average.
------( Synonyms )------
huge, immense, enormous, massive
- Python 3.x
requestsmodule
- Clone the repository:
git clone https://github.com/Umair-Awans/dictionary-cli.git
cd dictionary-cliInstall dependencies:
pip install -r requirements.txtRun the script:
python main.py
📦 requirements.txt
requests
🛣️ Future Plans
✅ [Done] Display all definitions, examples, synonyms & antonyms
🔄 Add support for clipboard input using pyperclip
🧪 Add unit tests and input validation improvements
💻 Create a PyQt5 GUI version for better accessibility
🗂️ Export meanings to a .txt file or copy to clipboard
🌐 Add support for offline mode using cached data
📜 License
This project is open-source and free to use under the MIT License.
🙋♂️ Author
Umair
📬 Suggestions and collaboration ideas are welcome!