Turn an epub into Anki cloze flashcards
This script will take every unique word in an epub and create a anki cloze flashcard using an example found in the book.
Install python 3.11
Install epubclozer
python -m pip install epubclozer
Create a cloze for each unique word in epub:
python -m epubclozer --lang "en" --path "C:/path/to/book.epub"
Ignore stop words by adding the --exclude-stop-words
option.
Note this will only work effectively in you pass the target language --lang
as well.
python -m epubclozer --lang "es" --path "C:/path/to/book.epub" --exclude-stop-words
See epubclozer --help
for all options
Your Anki package will be put in the same location as the epub.