This is a simple tool that helps you generate cloze cards for words that you want to memorize in english using the oxford dictionaries api
- Install Node
- Clone this repository
git clone https://github.com/WinterCore/anki-missing-word-generator.git - Change your current working directory to the cloned repo
cd anki-missing-word-generator - Obtain an oxford dictionaries api APP_KEY and APP_ID (The free plan is about 3k requests a month, which is about 1500 words)
- run
npm install - run
npm run build - run
node dist/index.min.js -i [words_input_file] -o [cloze_cards_output_file] -k [APP_KEY] -d [API_KEY]Check the options below - import into anki
- Enjoy
-
-i [path]or--input-file [path]The file that contains the english words that you want to generate the examples from, the words should should be separated by new lines (each word should be on its own line)
-
-o [path]or--output-file [path]The file that contains the output data to be imported in anki (The front and the back of the card are separated by a semicolon
;) see importing below -
-sor--include-subsensesBy default this app generates examples for main definitions only (integer numbers in the image below) Using this option will generate examples for subdefinitions (fractional numbers) eg: 1.1, 1.2, 2.1, 2.2
-
-c [number]or--count [number]By default 2 sentences will be generated for each definition, use this option to specify how many sentences should be generated for each definition
-
-k [string]or--app-key [string]oxford dictionaries api APP KEY
-
-d [string]or--app-id [string]oxford dictionaries api APP ID
-
-for--using-free-planUse this option if you're using the free plan of the oxford dictionaries api This throttles the requests to 59-60 per minute to prevent reaching the maximum of 60 requests per minute This option might make the process slower but it is necessary to prevent the api from refusing requests after reaching the maximum
-
-hor--helpOuputs usage formation
- From the
filemenu selectimport - Select your output file
- Import options
TypeShould be set toClozeDeckChoose the deck that you want to import the cards intoFields separated byClick on it to open the dialog and insert a single semicolo;then click on OKAllow HTML in fieldsShould be checkedField 1 of file isShould bemapped to TextField 2 of file isShould bemapped to Extra
- Click on import
If you have any further questions feel free to open an issue and ask
Thanks
