Skip to main content

Define words in the English dictionary.

Project description

English Dictionary

Usage

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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: englishdictionary-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 englishdictionary-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6794ef97e5845f30ef40f343aca00739cdda6352d88905e4e841b853936366b
MD5 9204f1627df59802884de2c41e7958b4
BLAKE2b-256 491ea03a49cfcdb066b4c24c7483d6d8b9596e41e8b8fea4ed8e64b96034e733

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