AnkiWeb
- Rating
- 0 (๐ 0 ยท ๐ 0)
- Updated
- 2026-02-18
- Anki versions
- 25.09.2~
- Description language
- en
AnkiWeb addon 267473329
Generates natural Gemini-powered contextual sentences from vocabulary decks, mixing known and new words into cloze and new-word Anki cards.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.55 | 25.09.2+ | 2026-02-18 |
Loadingโฆ
Generates formatted Anki cards from English words using Claude or ChatGPT, with example sentences, IPA, definitions, synonyms, vocabulary breakdowns, Google TTS audio, preview, and duplicate detection.
Creates interactive dropdown fill-in-the-blank grammar cards manually or with optional AI assistance, supporting many languages, automatic cloze generation, smart distractors, and text-to-speech.
Uses AI to generate example sentences, explanations, and context from selected Anki text, then creates structured notes.
Generates AI-powered flashcards with word lemmas, contextual definitions, example sentences, and TTS pronunciation, plus CEFR-level reading stories from studied words.
Generates customizable MCQ, cloze, and basic Anki flashcards from images via Gemini AI, with profiles, field mapping, batching, and context-aware processing.
Generates complete Anki flashcards via Gemini AI and bulk-fills missing meanings or parts of speech from dictionaries or AI, with field mapping.
AI-powered sentence generation for Anki โ Turn your vocabulary cards into natural, contextual sentences using Google's Gemini AI.
Sentence Miner bridges the gap between memorizing isolated words and understanding them in real conversation. It reads your vocabulary deck, identifies which words you know well and which you're still learning, then generates sentences that mix them together โ just like how you'd encounter them in the real world.
| Type | What It Does | Example |
|---|---|---|
| ๐ฒ Cloze Recall | Hides known words so you recall them from context | ็ซใ{{c1::ๅฑๆ น}}ใฎไธใซๅบงใฃใฆใใ |
| ๐ New Word | Introduces unfamiliar words alongside known ones | ็ซใๅฑๆ นใฎไธใซๅบงใฃใฆใใ |
You control the mix with a slider (default: 70% cloze / 30% new word).
The add-on doesn't just randomly pick words. It uses several strategies to create better sentences:
food, travel, JLPT_N3), the generator groups words by topic and creates thematically coherent sentences instead of random word combinations.The Gemini prompt is carefully crafted to produce sentences that:
In Anki, go to Tools โ Add-ons โ View Files Folder (or open the folder manually):
| OS | Path |
|---|---|
| Windows | %APPDATA%\Anki2\addons21\ |
| macOS | ~/Library/Application Support/Anki2/addons21/ |
| Linux | ~/.local/share/Anki2/addons21/ |
Copy or symlink the entire anki-sentence-miner folder into addons21/:
addons21/
โโโ anki-sentence-miner/
โโโ __init__.py
โโโ config.json
โโโ config.md
โโโ manifest.json
โโโ sentence_generator.py
โโโ note_manager.py
โโโ ui.py
Close and reopen Anki. You should see a new Sentence Miner submenu under Tools.
On first launch, the add-on will prompt you to enter an API key. You can also access this anytime via Tools โ Sentence Miner โ API Key Setup.
| Model | Requests/Min | Requests/Day |
|---|---|---|
| gemini-2.5-flash | 10 | 250 |
| gemini-2.5-flash-lite | 15 | 1,000 |
This is more than enough โ generating 5 sentences uses 1 request.
| Setting | What It Controls |
|---|---|
| Source Deck | The vocabulary deck to pull words from |
| Language I'm Learning | Target language (e.g., Japanese, Spanish) |
| My Native Language | Language for translations (e.g., English) |
| Known Word Threshold | Minimum interval (days) for a word to count as "known" |
| Known Words in Sentence | Target percentage of known words per sentence |
| Card Type Mix | Ratio of Cloze cards vs New Word cards |
| Sentences to Generate | How many sentences per batch (1โ20) |
| Sentence Deck | Name of the deck where generated cards will go |
All settings are saved automatically and restored next time you open the dialog.
| Field | Content |
|---|---|
| Sentence | The target-language sentence with new words in bold |
| Translation | Natural translation in your native language |
| NewWords | List of new words with readings and definitions |
| Notes | Additional context (if any) |
Front shows the sentence with a hint button for new words. Back reveals the translation and word definitions.
| Field | Content |
|---|---|
| Text | The sentence with {{c1::hidden_word}} cloze deletions |
| Translation | Natural translation in your native language |
| Notes | Additional context (if any) |
Front shows the sentence with blanks. Back reveals the hidden words and translation.
Both card types include styled templates with:
You can edit the config via Tools โ Add-ons โ Sentence Miner โ Config, or directly in config.json:
{
"gemini_api_key": "",
"target_language": "",
"native_language": "",
"source_deck": "",
"sentence_deck": "AI Sentences",
"known_interval_days": 7,
"known_word_percentage": 70,
"cloze_percentage": 70,
"sentences_per_batch": 5,
"gemini_model": "gemini-flash-latest"
}
See config.md for detailed explanations of each setting.
Your Vocabulary Deck
โ
โโโ Cards with interval >= threshold โโโ KNOWN WORDS
โ (e.g., interval >= 7 days) Used for cloze blanks
โ and sentence scaffolding
โ
โโโ Cards with interval < threshold โโโ NEW/WEAK WORDS
(new, learning, or young cards) Introduced in context
Sorted by priority: with known-word support
โข High lapses = higher priority
โข Low ease = higher priority
โข Brand new = high priority
All Known Words (e.g., 3,000)
โ
โโโ Group by Anki tags
โ food: [rice, fish, cook, ...]
โ travel: [hotel, ticket, map, ...]
โ JLPT_N3: [ๆฑบใใ, ๅฑใใ, ...]
โ
โโโ Pick 1-2 focus tag groups
โ
โโโ Sample 70% from focus groups โโโ Thematic coherence
โโโ Sample 30% from others โโโโโโโโโ Variety
โ
50 words to prompt
All New Words (e.g., 500)
โ
โโโ Calculate priority score per word
โ score = lapsesร2 + (3-ease) + new_bonus
โ
โโโ Sort by priority (with jitter)
โ
โโโ Sample from top candidates โโโ 20 words to prompt
[Smart-sampled words] โโโ [Gemini Prompt] โโโ [API Call]
โ
[JSON Response]
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โ โ
Cloze Cards New Word Cards
[[word]] โ {{c1::word}} **word** โ <b>word</b>
โ โ
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
[Preview Table]
โ
[User accepts/rejects]
โ
[Add to Deck]
anki-sentence-miner/
โโโ __init__.py # Entry point โ menu registration, first-run check
โโโ config.json # Default settings
โโโ config.md # User-facing config documentation
โโโ manifest.json # Anki add-on metadata
โโโ sentence_generator.py # Word retrieval, smart sampling, Gemini API
โโโ note_manager.py # Deck/note type creation, card templates
โโโ ui.py # PyQt dialogs (API key wizard + generator)
โโโ README.md # This file
MIT License โ feel free to use, modify, and distribute.