Skip to main content

An English dictionary wrapper with voice-pronunciation enabled

Project description

DictionaryIO

DictionaryIO is an English Dictionary wrapper with voice-pronunciation.

Installation

Use the package manager pip to install dictionaryio.

pip install dictionaryio

Usage

from dictionaryio import DictionaryIO

word = DictionaryIO('happy') # replace `happy` with any word of your choice
word.wordie # returns a string of the word. eg: 'happy'

#GET MEANING:
word.meaning() # returns the meaning of the word

#GET VOICE PRONUNCIATION:
word.pronounce() # plays pronounciation of the word - requires exit with CTRL + C

#GET EXAMPLE:
word.example() # returns a string making an example of the word

#OTHERS:
word.synonyms() # returns a list of synonyms for the word
word.figure_of_speech() # returns the figure of speech for the word
word.phonetics() # returns the phonetics of the word

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dictionaryio-0.0.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

dictionaryio-0.0.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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