Tag Ratio Panel

AnkiWeb addon 122344548

Calculates tag-based coverage and completion ratios across selected decks, displaying colored percentage indicators and supporting OR/AND tag logic, flexible deck scoping, and optional auto-updates.
AI-generated summary; may contain mistakes.

statisticsprogress-tracking

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2025-12-22
Anki versions
23.10~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON, Git Attributes
Description language
en

Maintenance

stale

  • Last update or commit: 2025-12-23 (313 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 11.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.10+2025-12-22
History across monthly snapshots

Loading…

Similar addons

Study Time & Efficiency Tracker

Automatically tracks study sessions and displays daily, deck, and historical review-time statistics with efficiency estimates, integrating with Review Heatmap (required) and offering customizable panels.

statisticstimerappearance

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2026-10-20
Bar Graph

Displays recent Anki review activity as a cached, customizable bar graph directly on the Decks screen, with configurable date ranges, optional daily goal line, and hover details.

statisticsprogress-tracking

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 25.01~ Updated 2025-12-16
Lapse Review Ratio Tools

Calculates the mean lapse review ratio and its standard deviation across the cards in your Anki collection.

statistics

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2024-04-14

Description



See how balanced your learning really is.

Track tag-based coverage and completion ratios across your decks β€” at a glance.
Make gaps visible, progress measurable, and study planning intentional.

Key features

β€’ Calculates tag-based ratios (0–100%) across selected decks
β€’ Supports OR / AND logic for multiple tags
β€’ Flexible deck filtering (single, multiple, parent + subdecks)
β€’ Custom percentage color bands for instant visual feedback
β€’ Optional auto-update after study sessions

How to use

Configure tags and deck scope via Tools β†’ Add-ons β†’ Config.
Update manually from the Tools menu or let it refresh automatically after study.
View results directly on the main screen or deck browser.

Source code

GitHub: https://github.com/yuwayanagitani/tag-ratio-panel

==================================================

Tips

Here, I demonstrate the easiest way to add your decks to the panel.

  • Open anki brower.
  • Select your deck you want to add on the side panel of the brower.
  • Copy the text on the search bar.
  • Paste it to the add-on config.



==================================================

Recomendation!!

  • This addon and Difficulty Tag Auto Assigner have synergetic effects.
  • "Difficulty Tag Auto Assigner" automatically put "Easy" and "VeryEasy" tags on your cards which you can easily answer correctly.
  • If you set VeryEasy and Easy tags as target tags on "Ratio Panel", you will see the progression of your study for each deck!! (as you see in the screenshot above.)



==================================================

Supports

This tool is built to support medical students and residents.
Support via thumbing up πŸ‘ on this page and Buy Me a Coffee β˜• motivates me a lot!!


README

Tag Ratio Add-on for Anki

Overview

Tag Ratio is an Anki add-on that visualizes learning coverage by calculating tag-based completion ratios across decks. It is designed for large, structured collections where coverage, progress, and balance across topics matter.

The add-on:

  • Computes ratios based on tags (e.g. needs_coverage_key, why, clinical)
  • Displays results directly on the Main screen / Deck Browser
  • Supports flexible deck scoping (single, multiple, parent + subdecks)
  • Provides a custom Config GUI via Tools β†’ Add-ons β†’ Config

This add-on is intentionally non-intrusive: no extra buttons are added to the UI beyond the existing Tools menu actions.


Key Features

1. Tag-based Ratio Calculation

  • Counts cards matching specified tags
  • Calculates percentages per tag
  • Supports OR / AND logic for multiple tags

Example use cases:

  • Coverage tracking (needs_coverage_key)
  • Learning stage tracking (why, definition, clinical)
  • QA or review completeness checks

2. Flexible Deck Scoping

Deck selection is controlled by an Anki search query called search_scope.

Supports:

  • All decks
  • Single deck
  • Multiple decks
  • Parent decks with all subdecks

Examples:

deck:*
deck:"My Deck"
deck:"Parent" or deck:"Parent::*"

Multi-line Mode (Recommended)

You may enter one scope per line in the Config GUI:

deck:"My Deck"
deck:"Another Deck"
deck:Parent
  • You do not need to write OR
  • Each line is normalized automatically
  • All scopes are combined with OR

3. Automatic Normalization

Each deck scope is automatically normalized to:

(deck:"X" or deck:"X::*")

This ensures:

  • Deck names with spaces always work
  • Parent decks always include subdecks
  • Manual mistakes are minimized

4. Custom Config GUI

Open via:

Tools β†’ Add-ons β†’ Tag Ratio β†’ Config

The Config GUI allows you to configure:

  • UI target (Main screen / disabled)
  • Deck search scope (multi-line supported)
  • Tags (comma-separated)
  • Tag mode (OR / AND)
  • Minimum card threshold
  • Maximum rows to display
  • Percentage color bands (with live color picker)

No settings buttons are added to the Tools menu.


5. Visual Indicator Bands

You can define percentage bands with colors:

Range (%) Meaning (example)
0–40 Critical (red)
40–70 Low (orange)
70–90 Good (green)
90–100 Excellent (blue)

These bands are rendered as colored dots next to deck names.


6. Manual Update Options

From Tools menu:

  • Tag Ratio: Update now Forces recomputation immediately

  • Tag Ratio: Open dialog Opens the detailed ratio dialog


7. Optional Auto Update (Advanced)

The add-on can be configured to auto-update after study sessions:

  • Trigger: Reviewer close (after finishing study)
  • Safe default: OFF
  • Recommended for collections with ≀100k cards in scope

This avoids unnecessary background work while keeping ratios fresh.


Performance Notes

Performance depends primarily on:

  • Number of cards matched by search_scope
  • Number of tags specified

Approximate behavior:

  • ≀20k cards: instant
  • 20k–100k cards: 1–3 seconds
  • 100k+ cards: consider disabling auto-update

Deck count alone does not significantly affect performance.


Design Philosophy

  • Deterministic, transparent behavior
  • No hidden background jobs
  • No UI clutter
  • Configurable but safe defaults

This add-on is intended for serious, structured learning workflows, especially those treating Anki decks as a long-term knowledge base rather than ad-hoc flashcards.


Compatibility

  • Anki 25.x
  • Python 3.13+
  • Qt6 / PyQt6

Tested primarily on Windows; expected to work on macOS and Linux.


License

MIT License


Author Notes

This add-on is part of a broader "study-as-code" workflow and is designed to integrate cleanly with:

  • Coverage tracking systems
  • Branch-based learning flows
  • README / coverage index generators

If you are extending this add-on, keep normalization and determinism in mind.