Define words in the English dictionary.
Project description
English Dictionary
Usage
import edictionary as edit
define(word:str, limit:int=50:)
Arguments
word
- A str
of a single word to define. Required
limit
- int
that limits how many results, ordered by popularity. Default: 50
Return
dict
Example
>>> edict.define("hello")
[{'partOfSpeech': 'exclamation', 'definitions': [{'definition': 'used as a greeting or to begin a phone conversation.', 'example': 'hello there, Katie!', 'synonyms': [], 'antonyms': []}]}, {'partOfSpeech': 'noun', 'definitions': [{'definition': 'an utterance of ‘hello’; a greeting.', 'example': 'she was getting polite nods and hellos from people', 'synonyms': [], 'antonyms': []}]}, {'partOfSpeech': 'verb', 'definitions': [{'definition': 'say or shout ‘hello’.', 'example': 'I pressed the phone button and helloed', 'synonyms': [], 'antonyms': []}]}]
phonetics(word:str, limit:int=50:)
Arguments
word
- A str
of a single word to find phonetics for. Required
limit
- int
that limits how many results, ordered by popularity. Default: 50
Return
dict
Example
>>> edict.phonetics("hello")
[{'text': 'həˈləʊ', 'audio': '//ssl.gstatic.com/dictionary/static/sounds/20200429/hello--_gb_1.mp3'}, {'text': 'hɛˈləʊ'}]
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for english_define-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1644385e858e004aaec9eff2cc24e0ff2bfd0a2d7ba2fcaa89cfc1c5053a2b3 |
|
MD5 | cc58f75f41a82dcd522c25a4acb29de0 |
|
BLAKE2b-256 | 4250ce26a3f90d99d9e7b7a1b28182529350a710833b6d6a7fdeecb4f0f63cc9 |