Get definition of words in any language
Project description
Getting started with Word Definition
Get definition of words in any language.
The word-def
package is an extensible library to get definition of words
in any language. It can be used as a library or as a command-line interface.
Installation
# As a library
pip install word-def
# As a CLI
pipx install word-def
Plugins available
Features
get-definition
get-synonym
get-pos-tag
get-usage-examples
Examples
$ word-def get-definition joy eng
1. a deep feeling or condition of happiness or contentment
2. something causing such a feeling; a source of happiness
3. an outward show of pleasure or delight; rejoicing
4. success; satisfaction
5. to make joyful; gladden
You may need to specify a plugin configuration file if the plugin
requires extra parameters (e.g. credentials to access an API). You
can register such parameters in a toml file and pass it to word-def
.
<!-- plugin-config.toml -->
["danoan.word_def.plugins.modules.english_collins"]
entrypoint = <ENTRYPOINT>
secret_key = <SECRET_KEY>
$ word-def --plugin-configuration-filepath plugin-config.toml get-definition joy eng
Contributing
Please reference to our contribution and code-of-conduct guidelines.
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
word-def-0.2.0.tar.gz
(21.4 kB
view details)
File details
Details for the file word-def-0.2.0.tar.gz
.
File metadata
- Download URL: word-def-0.2.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa2c15c77173d7fa7ebf4cbf6da547abeaa28db6cb4f8c67177722d086b3903 |
|
MD5 | d8acf3b67ec54c47c48dcac658432022 |
|
BLAKE2b-256 | eff3694aee49f016b4ab0f8da6d44f84e53c8d81f01859d7368685d847ea0364 |