Skip to content

A simple and interactive command-line English dictionary tool that fetches word meanings, definitions, phonetics, synonyms, and antonyms using the free https://dictionaryapi.dev/ API.

Notifications You must be signed in to change notification settings

Umair-Awans/dictionary-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

📖 Dictionary CLI

A simple and interactive command-line English dictionary tool that fetches word meanings, definitions, phonetics, synonyms, and antonyms using the free DictionaryAPI.dev API.


✨ Features

✅ 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


🖥️ Screenshot

<--<--<---( 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


🚀 Getting Started

🔧 Requirements

  • Python 3.x
  • requests module

💻 Installation

  1. Clone the repository:
git clone https://github.com/Umair-Awans/dictionary-cli.git
cd dictionary-cli

Install dependencies:

pip install -r requirements.txt

Run 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!


About

A simple and interactive command-line English dictionary tool that fetches word meanings, definitions, phonetics, synonyms, and antonyms using the free https://dictionaryapi.dev/ API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages