If you have a problem with the add-on auto rate typed answer post in this thread. This way I get notified. If you make a new thread I will likely miss it.
Everytime I Press âAnswerâ, it immediately choose âEasyâ, âGoodâ, âAgainâ. So I canât see the Back of
my cards. Can you set a delay function for choosing âEasyâ, âGoodâ, âAgainâ.
Ex: Every x seconds after I Press Answer button, Anki will choose âEasyâ, âGoodâ, âAgainâ
Thanks. Sounds useful. But thereâs so little time and so much to do. Iâll add this to my todo list with a low priority. Who knows when Iâll finish it âŚ
Hi - I have been trying to use the option to auto-code incorrect answers with âagainâ. However, this seems to mess up the algorithm in Anki that determines when a card has been learned. Iâm not sure exactly what is happening, but I know that the cards donât get advanced as quickly as they would without the add-on (sometimes I get stuck and keep doing the same few cards on an infinite loop, even when Iâm getting all of the answers right).
Thanks for taking the time to put together this really useful add-on! Iâm using it with my kids to stop them from cheating on their Anki, and itâs so helpful in that regard. 
One more note, in case it is helpful in diagnosing the problem: the toolbar that pops up in the lower left-hand corner seems to rate the card correctly (eg, 4 if you enter the answer within the duration set for easy). However, when I go to the stats, everything is coded as 1. There seems to be a mismatch between the rating that is displayed and what is actually coded.
@Sabrinal1981: I can look into this in about two weeks. But I need more info. Have a look at When problems occur - Frequently Asked Questions . What happens if you disable all other add-ons, restart Anki and use just my add-on: Do you still get the same problem? Which Anki version do you use: To find out: in the main window click on âhelp->aboutâ in the menu bar (might be slightly different on Macs), then âAboutâ. in the dialog that opens you see the anki version you use. On the bottom of this dialog thereâs a button âCopy Debug Infoâ. Click this and then youâll have some text with useful info for me in your clipboard. Also post this text.
Hi there,
Thanks for responding! Here are the answers to your questions:
-
I donât have any other add-ons, and Iâve tried restarting Anki multiple times, but the problem persists.
-
I am using Anki version 2.1.49.
-
Here is the text that shows when I click on âCopy Debug Infoâ:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-11-24 12:34:37
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
auto rate typed answer ['1836029849', 2021-06-12T10:01, 'None', mod]
===IDs of active AnkiWeb add-ons===
1836029849
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Thatâs useful info. I see that you changed the config of the add-on. Could you also post your add-on config. You can view your add-on config like this: in the main window menubar click on tools->add-ons. in the window that opens double click my add-on. Another window should open where you see the config. The config should look like this.
Sure thing. Hereâs what I see when I go to the config:
{
"accept_multiple_answers_for_these_notetypes": {},
"easy if shorter than": 12,
"good if shorter than": 15,
"hard if shorter than": 20,
"hard interval for cards with 2 or 3 buttons means again": false,
"ignore case when comparing": false,
"on mismatch ignore user rating, always rate as again/1 (2.1.20+ only)": true,
"on mistake set focus on again": false,
"show tooltip for confirmation": true
}
Hello,
First of all, thanks! This is great!
So, Iâm wondering if this can work on the android app. My kids use anki for grade school vocab and auto rating on mobile would be really helpful.
@aklsdfhjkl: No, this is not possible. From a technical point of view the mobile apps are fully different on the inside. So no add-on can be used on mobile. (some people are confused about the latter sentence. Some add-ons on the desktop can permanently modify notes so that you see the effects on mobile but these add-ons themselves donât work on mobile). This might change in the coming years but this doesnât help you âŚ
Another possibility is that ankidroid has this functionality built-in or plans to do it. But as far as I know this is not so. A first step would be to carefully search Issues ¡ ankidroid/Anki-Android ¡ GitHub which I only just skimmed.
Hi,
thanks for this addon! It is exactly what I need for my son!
I have ankni 2.1.49 and your addon installed. Unfortunately I donât see where I can see the results of your addon⌠Am I missing something?
Cheers, Jan
My config looks like this:
{
âaccept_multiple_answers_for_these_notetypesâ: {},
âeasy if shorter thanâ: 2,
âgood if shorter thanâ: 5.5,
âhard if shorter thanâ: 12,
âhard interval for cards with 2 or 3 buttons means againâ: false,
âignore case when comparingâ: false,
âon mismatch ignore user rating, always rate as again/1 (2.1.20+ only)â: false,
âon mistake set focus on againâ: false,
âshow tooltip for confirmationâ: true
}
When you change âon mismatch ignore user rating, always rate as again/1 (2.1.20+ only)â to true, the whole thing breaks. Even when I type in the correct answer, it overrides it and marks it as again. Would really love if this got fixed, I could really use this feature for a student who would be inclined to mark everything as correct regardless of whether they got it right, if given the opportunity. Thanks!
thanks for letting me know. I logged the bug. Unfortunately I donât have much time to fix this so I canât say when it will be fixed.
I downloaded the add-on using the built-in add-on downloader (as of time of writing) and was able to add a checkable option to enable/disable this add-on.
I found the URL to the Github repository in the add-on page, but Github showed 404, so I couldnât make a pull request. I hereby release the code in this comment into public domain via Creative Comons CC0 (feel free to use this code in a pull request).
$ diff -u __init__.py __init__.py.edited
--- __init__.py 2025-08-10 23:39:26.554338303 -0500
+++ __init__.py.edited 2025-08-10 20:14:36.728144123 -0500
@@ -12,7 +12,9 @@
from aqt.reviewer import Reviewer
from aqt.utils import showInfo, tooltip
from aqt import mw
-
+from aqt.qt import QAction
+from anki.hooks import addHook
+import aqt
try:
# introduced with 66714260a3c91c9d955affdc86f10910d330b9dd in 2020-01-19, should be in 2.1.20+
@@ -137,6 +139,8 @@
def myAutoAnswerCorrect(self):
+ if not auto_rate_typed_answer_on:
+ return
global matched_cid
if self.typedAnswer:
matched_cid = self.card.id
@@ -207,3 +211,42 @@
if gc("on mismatch ignore user rating, always rate as again/1 (2.1.20+ only)"):
reviewer_will_answer_card.append(on_mismatch__override_user_rating)
reviewer_did_answer_card.append(on_mismatch__show_tooltip)
+
+auto_rate_typed_answer_on = False
+
+def switch_auto_rate_typed_answer():
+ global auto_rate_typed_answer_on
+ if auto_rate_typed_answer_on:
+ auto_rate_typed_answer_on = False
+ else:
+ auto_rate_typed_answer_on = True
+
+def load_configuration_variables():
+ global auto_rate_typed_answer_on, auto_rate_typed_answer_menu_switch
+ try:
+ auto_rate_typed_answer_on = mw.pm.profile['auto_rate_typed_answer_on']
+ except KeyError:
+ auto_rate_typed_answer_on = False
+ auto_rate_typed_answer_menu_switch.setChecked(auto_rate_typed_answer_on)
+ # showInfo(f"load_configuration_variables - current state: {auto_rate_typed_answer_on}")
+
+def save_configuration_variables():
+ global auto_rate_typed_answer_on
+ mw.pm.profile['auto_rate_typed_answer_on'] = auto_rate_typed_answer_on
+ # showInfo(f"save_configuration_variables - current state: {auto_rate_typed_answer_on}")
+
+def setup_menu():
+ global auto_rate_typed_answer_menu_switch
+ auto_rate_typed_answer_menu_switch = QAction("""Enable auto-rate-typed-answer""", mw, checkable=True)
+ mw.form.menuTools.addAction(auto_rate_typed_answer_menu_switch)
+ auto_rate_typed_answer_menu_switch.triggered.connect(switch_auto_rate_typed_answer)
+
+def setup_hooks():
+ aqt.gui_hooks.profile_did_open.append(load_configuration_variables)
+ aqt.gui_hooks.profile_will_close.append(save_configuration_variables)
+
+def onload():
+ setup_hooks()
+ setup_menu()
+
+onload()
thanks for your contribution. Unfortunately at the moment my time for anki addon maintenance is very limited so i canât tell you when I have time to merge it.
I am seeing this bug as well. When I set âon mismatch ignore user rating, always rate as again/1 (2.1.20+ only)â to true, all correctly typed answers are marked as wrong. When I set it to false, the add-on works correctly.
Is there any chance of making this work in version â¨25.09.2 (3890e12c)âŠ?
