Skip to main content

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


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

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

english_define-0.0.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file english_define-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: english_define-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for english_define-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1644385e858e004aaec9eff2cc24e0ff2bfd0a2d7ba2fcaa89cfc1c5053a2b3
MD5 cc58f75f41a82dcd522c25a4acb29de0
BLAKE2b-256 4250ce26a3f90d99d9e7b7a1b28182529350a710833b6d6a7fdeecb4f0f63cc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page