Shabd
A command-line English dictionary tool for quick word lookups.
Features
- Lookup English word meanings directly from your terminal
- Works offline, with automatic background updates to its dictionary data
- Understands inflected forms automatically (e.g.
hike,hiking,hikedall resolve to the same entry, irregular forms included) - Simple and straightforward command-line interface
Installation
You can install Shabd from PyPI:
pip install shabd
Or install directly from the repository:
git clone https://github.com/spignelon/shabd.git
cd shabd
pip install .
Usage
Basic usage:
# Look up a single word
shabd apple
# Look up a phrase
shabd "machine learning"
Options:
# Display help
shabd --help
# Display version
shabd --version
How It Works
Shabd uses the Open English WordNet (OEWN) via the wn library as its dictionary source. On first use it downloads the data (~11MB download, ~100MB once indexed locally) into ~/.wn_data, then every lookup is served from there fully offline. It checks for a newer OEWN edition at most once every 30 days, never on every lookup.
Note: Shabd originally scraped Cambridge Dictionary, which worked for ~4 years, until Cambridge added Cloudflare bot-protection that blocks automated requests - so Shabd moved to this offline WordNet-based dictionary instead.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is the continuation of the cambridge-dictionary project.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shabd-2.0.tar.gz.
File metadata
- Download URL: shabd-2.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78f24f406d92ce8e80b557e771643e17a0ceb6824d6884dc3696b7f1c273b5bf
|
|
| MD5 |
4cbc74ad7d60c25119612786a171c3ac
|
|
| BLAKE2b-256 |
0edcd4c854e9bd4b1689aec547b73e2a32a58199457a8badab74e13cfb7ee39b
|
File details
Details for the file shabd-2.0-py3-none-any.whl.
File metadata
- Download URL: shabd-2.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
152552028e3b10816dc914e3eb41f535783e1f6b2af672d6cd251878db1e7e21
|
|
| MD5 |
a0d003fcabf2cd089b56b06f14bbdeba
|
|
| BLAKE2b-256 |
4adc85b011eb1884bfcf0be37a93c4cffea458bf185fd0a2f663d24fa63330cc
|