An automated tool for generating formatted English word study cards that can be directly imported into Anki.
- Batch process English words to automatically generate detailed study cards including:
- Phonetic symbols
- Parts of speech and definitions
- Memory aids
- Common collocations
- Derivatives
- Synonyms
- Supports batch processing for large word lists
- Uses Google Gemini API for intelligent content generation
- Proxy support for users in regions with limited access
- Auto-saves processing results with checkpoint support
- Preview feature to ensure output quality
- Ensure Python 3.x is installed
- Install required packages:
pip install google-generativeai requests
- Obtain a Google Gemini API key
- Configure in
word_processor.py
:- Replace
API_KEY
with your Gemini API key - Adjust
USE_PROXY
and proxy settings as needed
- Replace
-
Prepare input file:
- Create
words.txt
file - Input one word per line
- Create
-
Run the program:
python word_processor.py
-
The program will:
- Process words in batches (20 words per batch)
- Save batch results in the batch directory
- Merge all results into
processed_words.txt
word_processor.py
: Main program filewords.txt
: Input word listprocessed_words.txt
: Processed results filebatch/
: Directory for batch processing results
- Ensure stable network connection
- Enable proxy settings if accessing from regions with limited access
- Short delay between batches to avoid API rate limiting
- First batch preview for format verification