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!