An interactive CLI tool for creating English vocabulary Anki cards with definitions, IPA pronunciation, audio, examples, and images.
- Fetches word definitions and IPA transcription using
trans(Translate Shell) - Downloads audio pronunciation automatically
- Opens Google Images and Wiktionary for visual reference
- Supports custom images (URL or local file)
- Interactive editing of all card fields before adding
- Anki with AnkiConnect add-on installed
- Translate Shell (
transcommand) - Firefox (for opening reference pages)
- Python 3 with
requestslibrary
# Install translate-shell (Arch Linux)
sudo pacman -S translate-shell
# Or on Ubuntu/Debian
sudo apt install translate-shell
# Install Python dependency
pip install requests-
Import the included Anki deck to get the required note type:
example anki deck with the card types.apkgThis creates the "FF basic vocabulary" note type that the script uses.
-
Make sure Anki is running with AnkiConnect enabled.
python add_anki_card.py- Select the deck where you want to add cards
- Enter a word to look up
- The script will:
- Fetch definitions, IPA, and examples
- Download audio pronunciation
- Open Firefox tabs with Google Images and Wiktionary
- Edit any fields as needed (or press Enter to keep defaults)
- Optionally add a picture (URL or local path)
- Confirm to add the card
Enter q to quit.
| Field | Description |
|---|---|
| Word | The vocabulary word |
| Translation | Definition(s) |
| IPA transcription | Phonetic pronunciation |
| PoS | Part of speech |
| Example sentence(s) | Usage examples |
| Notes | Your personal notes |
| Picture | Image (optional) |
| Pronunciation sound | Audio file (auto-downloaded) |
MIT