DEV Community

MC Naveen
MC Naveen

Posted on

I made an Free API to get random words and Generate pronunciation on the go

The Story

From long time I want to learn a new word everyday. But I'm not fond of reading or going through the dictionary every single day. I wanted to do something technical.

So I created this API.

Tech Stack

  • NodeJS with Cheerio, Express
  • Compromise-pronounce for generating pronunciation

GitHub logo mcnaveen / Random-Words-API

πŸ¦„ Get Random Words (with pronunciation) for Free using this API

Random Words API

All Contributors

build-test

πŸ¦„ Get Random Words (with pronunciation) for Free using this API

πŸš€ API

  • Free API - https://random-words-api.vercel.app/word

  • Dutch Random Words - https://random-words-api.vercel.app/word/dutch

  • PWA Demo - Check Here

πŸŽ› Route Options

  • Base URL: https://random-words-api.vercel.app/word
- /noun
- /sentence
- /question
- /adjective
- /idiom
- /verb
- /letter
- /paragraph
- /vocabulary
- /1-word-quotes
- /2-word-quotes
- /3-word-quotes
- /affirmation
Enter fullscreen mode Exit fullscreen mode

🌐 Sample API Response

[
  {
    "word": "Exactor",
    "definition": "One who exacts; extortioner; claimer of rights  ",
    "pronunciation": "Eksaktor"
  }
]
Enter fullscreen mode Exit fullscreen mode

🌐 Sample Dutch Response

[
  {
    "word": "Perfect",
    "definition": "Perfect",
    "pronunciation": "Perfekt"
  }
]
Enter fullscreen mode Exit fullscreen mode

πŸ’‘ Learn New word

✨ Installation (Development)

# Clone the Repo
git clone https://github.com/mcnaveen/Random-Words-API random-words
# Cd into Directory
cd random-words

# Install Dependencies
yarn install

#
…
Enter fullscreen mode Exit fullscreen mode

It fetches the word from the web and generate pronunciation on the go.

Feel free to use it. PRs are welcome.

Thanks to @mskian for Progressive Web App.
https://wordsonrandom.netlify.app/

Top comments (4)

Collapse
 
mskian profile image
Santhosh Veer

it was really fun
Learn new words daily

Collapse
 
saikiranpatro profile image
Sai Kiran Patro • Edited

I'm getting API response error.
Please update it.
dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
mcnaveen profile image
MC Naveen

Sorry, It was some dependencies issue.
Fixed now. Enjoy πŸŽ‰

Collapse
 
victorhedegran profile image
VictorHedegran

I think the dependencies needs updating again, I get an error stating "Something Went Wrong - Enter the Correct API URL"