AI Cloze Review

approved

by liufree

AI-powered cloze deletion review - generate fill-in-the-blank content and review interactively. - This plugin has not been manually reviewed by Obsidian staff.

2 stars132 downloadsUpdated 1mo agoMIT

AI Cloze Review

中文

AI-powered cloze deletion review for Obsidian. One-click AI analysis generates fill-in-the-blank content, interactive review with click-to-reveal.

Features

  • AI Cloze Generation — One-click AI analysis, automatically identifies key content and generates cloze deletions
  • Local Semantic Cloze — No AI API? No problem. Built-in heuristic engine identifies key content (bold text, quoted terms, numbers, dates, acronyms, proper nouns, definition subjects, term-frequency analysis) and generates clozes locally
  • Dual API Format — Supports both OpenAI-compatible and Anthropic API formats for AI cloze generation
  • Stream Rendering — Real-time rendering as AI responds, with a typewriter effect for live cloze generation
  • Multi-Profile Config — Save multiple AI/local configurations; different devices can select different profiles. Quick-switch via toolbar
  • Instant Review Mode — Hide cloze answers, click to reveal, track progress (revealed/total)
  • Preserves Original Notes — All cloze content is cached in memory, your notes remain untouched
  • Adaptive Density — Cloze count auto-calculated from note length and difficulty (Easy/Medium/Hard/Extreme)
  • Bottom Toolbar — Quick actions: AI generate, toggle review, reveal/reset, exit review
  • Readable Line Length — Respects Obsidian's readable line length setting
  • Mobile Optimized — Compact layout with icon-only buttons on small screens
  • Multi-API Support — OpenAI, DeepSeek, Zhipu, Moonshot, Ollama, and any OpenAI-compatible API
  • i18n — Auto-detect Chinese/English, with manual override in settings

Usage

  1. Configure API in settings (endpoint, key, model)
  2. Click AI Cloze to generate cloze deletions for the current note
  3. AI automatically enters review mode, hiding answers as blanks
  4. Click any blank to reveal the answer
  5. Use Reveal to show all, Reset to hide all again
  6. Click Exit to restore the original note view

Screenshots

Review Mode

AI Cloze Generation

Settings

Cloze Syntax

{{c1::key content}}          — Basic cloze
{{c1::answer::hint}}          — Cloze with hint

In review mode, cloze answers are hidden as [ __ ] placeholders. Click to reveal.

Installation

From Obsidian Community Plugins (coming soon)

  1. Open Settings → Community Plugins
  2. Browse and install "AI Cloze Review"
  3. Configure API settings

Manual Installation

  1. Download main.js, manifest.json, styles.css from the latest release
  2. Place them in {your-vault}/.obsidian/plugins/ai-cloze-review/
  3. Enable the plugin in Settings → Community Plugins

Settings

SettingDescriptionDefault
LanguageInterface language (auto/en/zh)Auto-detect
API EndpointOpenAI-compatible API URLhttps://api.openai.com/v1/chat/completions
API KeyYour API key
ModelModel namegpt-4o-mini
TemperatureGeneration temperature (0-1)0.3
DifficultyCloze density: Easy/Medium/Hard/ExtremeMedium
Auto Enter ReviewAuto-enter review after AI generationtrue
Custom PromptCustom AI promptDefault prompt

Difficulty & Density

Cloze count automatically adapts to your note length:

DifficultyDensity3000 chars example
Easy250 chars/cloze~12 clozes
Medium120 chars/cloze~25 clozes
Hard60 chars/cloze~50 clozes
Extreme30 chars/cloze~100 clozes

Development

npm install
npm run build   # production build
npm run dev     # dev with watch mode

License

MIT


If you find this plugin helpful, please give it a ⭐ on GitHub! Your support and feedback are greatly appreciated. Also welcome to submit Issues and PRs.

Contact

WeChat QR Code

Scan the QR code to connect on WeChat.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.