Giter Club home page Giter Club logo

anki-synonyms's Introduction

anki-synonyms

A simple Anki plugin that allows randomly choosing different options for parts of prompts. This was designed to handle synonyms in a clean way.

Motivation

Consider a 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:

{
    "CHOICE_TAG": "|",
    "END_TAG": ")",
    "START_TAG": "'("
}

Update these accordingly if the default '(|) set of operators do not mesh with the text in your questions and answers.

anki-synonyms's People

Contributors

jrpotter avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.