Overview
A simple Anki plugin that allows randomly choosing different options for parts of prompts. This was designed to handle synonyms in a clean way.
Consider a total order (https://en.wikipedia.org/wiki/Total_order). What this is does not matter; other names it may have does. What some people call a “total order”, others call a “linear order”. Though this example is simple, it highlights an important issue - remembering the various synonyms used to describe a concept is necessary for fluency.
As of now, to handle this situation, it is probably suggested to use two flashcards, one with prompt “Total Order” and another with prompt “Linear Order”. In some cases though, it’d be nice if the flashcard could choose which term it shows when it shows it. That is, it’d be nice to have a single card and allow Anki to randomly choose to show “Total Order” or “Linear Order”.
To do so, we can install this plugin and write the following:
‘(Total|Linear) Order
Here, ’( is used to indicate the start of a set of choices Anki can display, | is used to separate the different options, and ) is used to indicate the end of the set. The result is either “Total Order” or “Linear Order” at time of prompting.
You can also nest choices if need be:
’(‘(Logical|Valid) Consequence|Entailment)
will yield either “Logical Consequence”, “Valid Consequence”, or “Entailment”.
Configuration
From “Tools > Add-ons”, select the anki-synonyms entry and select “Config” to reveal a dialog with contents. Update these accordingly if the default ’(, |, and ) set of operators do not mesh with the text in your questions and answers.
Liên kết hỗ trợ
Reviews (3)
👍 2023-02-26
As I understand it, the benefit of this over using separate cards is that questions so similar they are basically the same question can share the same schedule, giving the flashcard the ability to ask the same question a different way.
I am not sure I am using it the right way though, I am getting inconsistent results in 2.1.59/2.1.60 qt6 Windows
Using a Basic card, I put on the Front:
‘(plant|vegetation)
and on the Back
‘(Plant|Vegetation)
On the front it says plant, but on the bac
👍 2022-11-21
It works! Would be great if the addon can change from “showing a card with one of the synonyms by chance” into “creating a NOTE, with each card showing each synonym”. Anyway, thank you for the addon
👍 2022-10-02
great!