Skip to main content

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, hiked all 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

shabd-2.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shabd-2.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file shabd-2.1.tar.gz.

File metadata

  • Download URL: shabd-2.1.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for shabd-2.1.tar.gz
Algorithm Hash digest
SHA256 bd177f7330aa09352aa96f1f2c0ecddf4f2b89a022c831daefedac8cb247c154
MD5 19c9610e56ffdd1840cefcf4f0eac321
BLAKE2b-256 1afc079a3e11bd6b4981fe0372c2b26bb4481cee4cff0453b15aadabec0f4880

See more details on using hashes here.

File details

Details for the file shabd-2.1-py3-none-any.whl.

File metadata

  • Download URL: shabd-2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for shabd-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 365a01871c8dc3ce86916f20319cfc8a47efca2a32f15fed8ac270b2c8e76875
MD5 9f3c15050fb314ca1ad6f6a1ab4207cf
BLAKE2b-256 ba2a6bcf8b9e0b55ccc718ecde3281b38397e48eb7f3446df762ad960703dfb7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1 This release

2 files

2.0

2 files

1.1

2 files

1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page