Skip to content

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

 
 
 

Contributors

Languages