This project is made by Anish Govind. Other projects can be found at my GitHub. Huge thank you to the contributors of this api because it handles the dictionary required for this script
This is a script designed to generate a text file of definitions of a given input text file of words to define.
I recently got assigned the task of defining 60+ words in my English class. Instead of googling each one and copy and pasting, I decided it would be more efficient to use a script. It only took me 45 minutes to make and functional to the point where I liked it. Now, for any future assignments that require me to do something similar, I can just use this script again!
- API calls
- Python 3
-
Clone this repo (for help see this tutorial).
-
Install dependency "requests" (
pip install requests
or see here) -
Create an input file that follows the following rules:
- Words should be on different lines (newline seperated).
- Having numbers to denote what word you are on should end in a period. (More endings to come later)
- Odd spacing doesn't matter unless its in the word.
- Capitalization doesn't matter.
Example input file:
1. Ambivalent 3. Hello World 1231251161. nIcE
-
python ~/PATH/TO/REPO/main.py input.txt output.txt
-
Wait for the script to say
DONE
. -
Open
output.txt
however you feel is best.
Note: Larger input files means you'll have to wait longer for the definitions.
- Take an input file.
- Produce an output file of definitions.
- Ignore some definitions based on user input.
- 1.0.0 (10/1/2020): First working release.
Creator: Anish Govind
Ways to contact:
IF YOU FIND ANY ISSUES OR BUGS PLEASE OPEN AN ISSUE