View Source Ranwords (Ranwords v0.1.0)

Generates random words with their meaning and pronunciation.

Link to this section Summary

Functions

Fetching the API and return the body with cases

Helper functions so output is formatted well

Format down the data to be more readable

Returns the whole data (word, meaning, pronunciation)

Returns the meaning of the word

Returns the pronunciation

Link to this section Functions

Fetching the API and return the body with cases

Once we run into an error, we return it from the Error module

Helper functions so output is formatted well

Link to this function

get_pronunciation_format()

View Source

Format down the data to be more readable

Returns the whole data (word, meaning, pronunciation)

Returns the meaning of the word

Link to this function

randomWordPronunciation()

View Source

Returns the pronunciation