bunnysaini/mw-vocab-def
This project fetches word definitions from Merriam-Webster Dictionary API and stores them is a CSV file.
If you're learning a set of words for any competitive test to enhance your vocabulary (eg. GRE, TOEFL, IELTS etc.), most of the resources online provide you with a list of words that you have to manually search meanings for. For GRE - Vince's GRE Compilation and Curation is a great resource provides only words. With this project, you can provide words and automatically fetch their meaning using the Merriam-Webster API.
- Create a Dev Account on Merriam Webster Developer Center and generate an API Key - to fetch word definitions.
- The API is restricted to 1000 queries per day.
- The URL used in this project is for the Merriam-Webster's Collegiate Dictionary, if you use another dictionary update the URL and any parts that handle traversing the API response.
- Replace the API Key in code or use as a Secret.
- Run the code with Input file name and path in mind.
- Alternatively declare dictionary in code for a smaller volume of words.
- The instructions in the workbook are pretty thorough and should help navigate it.
This project is not optimally developed yet, so you're welcome to suggest changes by raising a PR. I did not want to spend an eternity coding so I developed a boilerplate code for MW's API response. It may not handle their "sense" concept the most efficiently but gives you something to work with.
I've also added a populated version of Vince's curated word list with their meanings incase you have stumbled upon this repo for that, it's under GRE Words List. Feel free to raise a PR and make modifications, if you access this list as it may not be at it's ideal stage yet.
Input: A CSV file with all words in first column and a Header.
![input-ss](https://private-user-images.githubusercontent.com/83510385/318055384-6f0631b6-e168-4557-a59f-ea9f733b2bde.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MjYwODEsIm5iZiI6MTcxOTYyNTc4MSwicGF0aCI6Ii84MzUxMDM4NS8zMTgwNTUzODQtNmYwNjMxYjYtZTE2OC00NTU3LWE1OWYtZWE5ZjczM2IyYmRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDAxNDk0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkOGUyNTRjZjUwZTI4YzE2YzdiYjU1NjFmNzBlMzU1MTA0MzE3ZTZlMzNjYWNjODU1M2FmZjE0ZWVlMjI4ZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hikX9ljJLXNcXPxLMnsjr1lX4uw4Q3BWjwYcYZCuS1w)
Output: A CSV file with the words and their definitions.
![output-ss](https://private-user-images.githubusercontent.com/83510385/318055138-77f670d1-d807-45c9-9172-66962fe893ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MjYwODEsIm5iZiI6MTcxOTYyNTc4MSwicGF0aCI6Ii84MzUxMDM4NS8zMTgwNTUxMzgtNzdmNjcwZDEtZDgwNy00NWM5LTkxNzItNjY5NjJmZTg5M2NlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDAxNDk0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2Y2NlZjU3NGU5YWQ5ZTQ2ZGZkZDI4MzdkZWM3MWVhODQ5YmZkMzkyYjkwOWM5MDg3ZjU4MzZhNGI1YTE1MDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Rdu-zwMz5cxGuIR15s8V5qP2p8hM7Q-xyYvEyAgxpwI)