Coder Social home page Coder Social logo

anki_reorder's Introduction

Anki deck reorder

This is a simple command line script that tries to optimize the order of the cards in your Anki deck, when you are learning foreign languages. It requires the cards to have two fields, one for the word in the foreign language and one for a sentence that uses this word. Then, the script tries to reorganize the cards in such a way that whenever you get a new card, it is more likely that you have already learned the words used in the sentence of this card (except for the new word, of course). Perfect ordering is impossible due to stuff like cyclical dependencies, but the result is better than a random ordering.

How do I use this?

  1. Download/extract an .apkg file
  2. Run this script with python3 script.py mypack.apkg mypack_ordered.apkg
  3. Tell the script which fields contain the foreign word and the sentence (you will be prompted for this)
  4. Import the new .apkg file into Anki
  5. Enjoy!

Dependencies

This script uses argparse, sqlite3 and zipfile, all of which are included in the Python standard library, so you shouldnt need to install any libraries. If you however encounter any issues, you can use Poetry to create a virtual environment by running poetry install && poetry shell.

Enjoy!

anki_reorder's People

Contributors

redkinda avatar

Watchers

 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.