A CLI tool for looking up the meanings of things.
Project description
Lab-93 Dictionary API & Linguistic Analysis Tools
This package offers a simple command-line command for scraping the definition of a word from dictionary.com
and returning it to the user.
It also provides a mechanism for building your own in-house dictionary from a list of over 50,000 words.
Installation
The module is available on Pip, to install to a virtual environment type:
pip install EnglishLanguageAPI
Single-Case Usage
To look up the definition of a single word, use the --word={$WORD}
flag, where $WORD is the word to search for.
EnglishLanguageAPI --word={word}
Dictionary Database Builder
The library also includes a system for building an offline dictionary by automating the process of selecting random words to look up and then writing the word and its definition to a sqlite3 database file.
--database
: Write the definition to as many random words as time allows for.--resume
: Keep track of what words haven't been entered into the database.--disposable-wordlist
: A consumable copy of the 50000-wordlist.txt file, for keeping track of what still needs to be defined.--wordlist
: Filepath to the local hardcopy of the 50000-wordlist.txt file.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file englishlanguageapi-1.0.1.tar.gz
.
File metadata
- Download URL: englishlanguageapi-1.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd85a768b563a6a693bda6f5c036d219f2e8b59c272571b0f6917c349c424d6b |
|
MD5 | 940757733242a77e6171a3f34110bd46 |
|
BLAKE2b-256 | 14b94d1d64bb5476c753c3c58b8541dbb12d9a2daf7923bdef5a58799045a453 |
File details
Details for the file EnglishLanguageAPI-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: EnglishLanguageAPI-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e09a8ffea51633a66ccf6239148451b48e8f347c73df6361e07629c8960c49a |
|
MD5 | 39590170867ce3240e3e54fb0defab28 |
|
BLAKE2b-256 | ebb72e47a4c26e1daddf4e756c78df524b1d2b8e79be9d7205d04e0538b5268c |