Anki Enhanced Cloze

“Cloze” to Perfect : Extending Anki’s Gapfill Activities

Ever had that realisation that there was a better way to do what you doing all along, one hiding under your nose the whole time? Well, that was my week of epiphany with Anki.

Anki has included cloze functionality pretty much from the get-go. If you’ve not come across cloze before, it’s basically fill-in-the-missing-word. Your card pops up, and instead of providing the whole answer, you just recall the missing section.

Cloze is a great tool in your learning box to ward against the isolation issue with vocab. Learning items in context is just as (if not more) important than learning individual items. If you drill ich habe einen Hund (I have a dog) in German, you’ll not only pick up Hund, but a handy sentence frame and grammatical information to boot. Vocab plus structure is always a winning combo (and why mass sentence drilling is so powerful).

Native Cloze in Anki

Anki’s native cloze capabilities are simple enough to use. To make a cloze card, you simply type in your sentence with the gapped words surrounded by braces, along with a special tag to signify the gap:

Ich habe einen {c1::Hund}.

In the toolbar, there’s even a button to do this for you – just highlight your word to gap, and click […].

There are even some extra tricks in there, right out of the box. For instance, you can add a hint that appears in the blank before you guess:

Ich habe einen {c1::Hund::noun}.

You can add several gaps, or sets of gaps. For instance, if you change a couple of them to c2 instead of c1, they’ll be treated as separate question sets:

Ich {c1::habe} einen {c1::Hund} und er {c2::ist} sehr {c2::lustig}!

When you come to test them, the c1 and c2 words will appear on separate cards. Really handy to drill more complex material.

As great as it is, though, it’s not perfect. For one thing, Anki hides and shows all your grouped gaps at once. Not great if you have two or three gaps on one card, and want to test your recall of them in their own right, rather than in one fell swoop.

Enhanced Cloze

Thankfully, the Anki Open Source community comes to the rescue. Anki Enhanced Cloze retains all the native functionality that Anki already did so well. But it also allows for individual hide/show within a set, adds a number of useful extra fields, a main/pseudo cloze distinction and some much nicer formatting.

A screenshot of a learning flashcard made with Anki Enhanced Cloze

Anki Enhanced Cloze

The resulting card is so much more flexible for self-testing, and looks much nicer, too. And the best thing? Card creation follows exactly the same method as Anki’s native cloze, along with the extra little hint trick. It’s a very quick way to make your cloze cards a lot more effective.

Needless to say, I’ll be spending some time this week converting my older cloze cards to the newer format. It’s one of those cases where a better way of doing things was hiding under my nose the whole time – the add-on has been around since 2021. Ah well – better late than never!

A dark forest, a good setting for an Anki horror story, perhaps? Picture from freeimages.com

Coming Up Blank : An Anki Horror Story

I lived through an Anki horror story this week. 🧟‍♂️

There I was, skipping merrily through my list of vocabulary, words flying past at a rate of knots. This is going well, I thought, with naive overconfidence.

But then it hit me. I stopped fast in my tracks. Staring blankly at the word on the screen, nothing would rise from the depths of memory. A void. I was peering into the darkness, teetering on the brink. Brain, don’t fail me now.

Then, I scrambled to think back, at the edge of desperation, to the time when I first added that word to Anki. Where did I get it from? Could I just recall what chapter it was in, which website I found it from, where I heard it?

Suddenly, I could see the textbook page, the colour of the background, the shape of the word. Almost sobbing with relief, I realised the ordeal was over.

It had come back to me.

What a close one!

The Right Way To Anki

OK, flippancy aside – why was that a horror story, you ask? After all, my visual memory must be great.

The problem here is that I had fallen foul of the dastardly context effect, and the word was, in essence, tied very tightly to the circumstances I learnt it in. Having to dredge up the exact setting of a vocabulary item on a page to recall it isn’t very efficient in the flow of conversation in the target language.

I only had myself to blame, of course. In my haste to add the word to my Anki collection, I broke the golden rule: only include items in context. That means as few isolated words as possible, and more contextualising phrases and full sentences showing the word in use. Learning dictionary-style does not work (believe me – I learnt that the hard way!).

I’ve seen the results for myself; switching to a more phrase-based vocab drilling routine works wonders for your conversation skills. It’s the rationale behind platforms like Glossika, which you can replicate with your own DIY sentence-based vocab strategy. In short: it works.

So yes, of course I should have known better, guv’nor. But my Anki horror story was a timely reminder to get back on the right track (and we all need those now and again).

Anki Image Occlusion with an IPA chart

Anki Image Occlusion : Lessons from the Medics

It was a long time coming, but I finally did it: I started using Anki for something other than foreign language vocabulary. Anki is steadily creeping into the rest of my life.

I know. What is the world coming to?

Admittedly, the new subject wasn’t a huge leap. I’ve started creating flashcards to drill terms and concepts from linguistics. That said, it does represent quite a departure from the way I usually create drill lists in the app.

The chief difference is the complexity of each chunk of learning material. Rather than one-to-one word and phrase combinations, we have terms with much more complex, interlinking definitions. And however brief, the information is a lot trickier to condense than simple vocabulary. Some of my flashcards were looking decidedly clunky.

If only there were some way to make it all a bit more concise and economical.

Anki-nspiration

So where to look for flashcard inspiration? Well, as it happens, language learners haven’t completely monopolised the Anki world. In fact, the app has quite the double life as a tool for medical students learning, amongst other things, terms and complex definitions!

It certainly pays to see how a diverse bunch of people use the same tool. We can learn a lot from users in other fields. And, nestling amongst the sprawling web of Reddits, there is a ton of general advice on optimising your cards.

Perhaps the cleverest trick of medical Anki users is the use of imagery for testing. Now I’m not talking about simple, one-to-one picture-word correspondences. Ohhhhh no. Medical students take it to another level, condensing lots of information into a single tableau. But to do that, they need to enlist some extra help.

Image Occlusion for Anki

The Image Occlusion Add-On for Anki allows for some quite sophisticated multi-field labelling questions. Obviously, these are ideal for drilling parts of the brain or major arterial pathways. But they lend themselves to pretty much any topic. If you can cover it up, you can turn it into an image occlusion activity.

For instance, you might think that linguistics is a rather text-heavy subject. Difficult to find too many diagrams to label, perhaps. But with a bit of creativity, you can adapt anything to fit the mould. Here’s an image occlusion activity I put together to drill the IPA consonants table and manner / place of articulation features:

Anki Image Occlusion with an IPA chart

Anki Image Occlusion with an IPA chart

Table-based data is actually perfect for these kinds of activity. And if you remember things quite visually, as I do, then making image activities out of them can yield some great memory results.

Fortunately, the Image Occlusion Add-On creators have provided a raft of training videos to learn how to use this incredibly useful tool. And – I’m very relieved to say – it’s not particularly difficult to get to grips with at all.

It is easy to forget that the Anki universe is quite massive. There is a huge amount of inspiration out there beyond our little bubble. Thanks, medical students, for pointing out this particular path!

Searching by tag in Anki

Playing Anki Tag : From Plain Lists to Topic-Based Fun

Anki users, do you tag your cards?

If the answer is no, then perhaps you should think about adding this natty little superpower to your vocab decks. It’s not only a good habit, but it can turn plain old Anki lists into fun, interactive games like this. How? Read on!

Topical Application

To start with, tagging cards with keywords for topic names like colours, animals, or food, or parts of speech like verb, or noun, gives your data greater searchability. In the Anki browse window, you can then filter on these keywords using the tag: notation.

Straight away, this opens up the possibility to conduct a quick and easy language audit. For example, searching on tag:colours quickly shows if there are any gaps in your linguistic colour palette that need filling.

Filtering your vocab cards by tag in Anki.

Filtering your vocab cards by tag in Anki.

Now, wouldn’t it be nice if you could also test yourself specifically on those queries? Say, pull up all of your food and drink words and blitz them for a bit of extra practice?

Unfortunately, you can’t do that straight out of the box. Anki doesn’t provide a way to create a new or virtual vocab deck by tag. But you can easily export them to make thematic test-yourself activities on other platforms.

Playing Tag with Anki

It’s actually pretty simple to get sets of data out of Anki by tag. In the Browse window of the desktop app, start by tapping out a tag: query on your data as above. Then, highlight all of the matching entries that appear in the list (clicking on one entry and then hitting CTRL + A is the fastest way for me).

Selecting notes by tag in Anki

Selecting notes by tag in Anki

Next, head up to Notes in the menu, and select the Export Notes option.

Exporting selected notes in Anki

Exporting selected notes in Anki

As we’ll be using this data on any number of different platforms, simplicity is the order of the day. For that reason, Notes in Plain Text is the best format to choose for our data. Selected Notes should already be the active choice in the Include dropdown. Make sure to untick Include tags and Include HTML and media references to keep the data as plain as possible. Then, tap the Export button.

Exporting selected notes in Anki

Exporting selected notes in Anki

The result should be a .txt file containing a neatly formatted list of your thematic word list. Magic!

From Anki to Beyond

Now you’re ready to drop that into other edu-game services that have an import feature. Educandy and Quizlet are amongst the easiest, and a good place to start. With Educandy, you can simply upload the .txt file directly, and it handles the rest. With Quizlet, you have to open the .txt file, copy the text and paste it into a little box, but it’s still nice and simple.

Now, you have a whole suite of games you can play that focus entirely on your chosen topic. A brilliant way to granulate your Anki practice a bit – or simply create games for your friends (or students) to learn from too.

Anki vocabulary items imported into an Educandy game

Anki vocabulary items imported into an Educandy game

 

Anki vocabulary items imported into a Quizlet game

Anki vocabulary items imported into a Quizlet game

Sometimes you may need to do a little extra work on the other end. In Quizlet, for example, I needed to reverse the order of columns from term-description to description-term as the site default didn’t match my list. Fortunately, that’s just a single button-click on that platform. Phew!

Tag Tips

Anki tagging isn’t perfect, it must be said. Even the most avid taggers will point out that the app’s default tag management features are a bit basic. For some extra control over them, it’s well worth installing the free Search and Replace Tags add-on. There is also the premium add-on BetterTags, which adds some serious extreme tagging power to your app.

Both utilities are incredibly helpful if you end up with near-duplicate or misspelt tags to tidy up. For instance, I realised I had tagged cards variously as ‘animal’ and ‘animals’ over time. Easy to do if you add cards in tranches regularly, rather than all at once. But a nightmare if you are searching for the topic ‘animal’ and only half of your cards appear.

No problem: the two tags combined like a treat with the Search and Replace add-on.

Whether you’re brand new to tagging or have been tagging like a pro for years, it pays dividends to explore these import-export options with other sites. A bit of variety is never a bad thing!

A wheel of colours. Image by Karen Barefoot, freeimages.com

Styling It Out With Anki

Flashcard wonder Anki is not only a rock solid learning tool, but also one of the best maintained pieces of software in the linguaphile sphere. Updates come regularly, and with each one the app gets more and more robust.

One impact of the most recent updates, for instance, has been to organise the interface for styling Anki cards a lot more tidily. What was formerly a slightly clunky, overwhelming form window now supports a more logical workflow.

Change can pull the rug from under our feet, though – so how do we style our cards now?

Stylin’ It With Anki

Accessing the styling panel is thankfully much the same as before. To access the updated card styling panel, first click Browse in the desktop app. Then, select one of your card types in the left-hand list, and click on the Cards… button that appears in the main right-hand panel (it doesn’t matter which entry is selected – the styling is shared by all of them).

Now, you get a nice, neat interface with tabs for the front and back sides of the card, as well as a shared styling tab for both. Previously, the window presented all of this information in a single window. The new format is a lot less overwhelming, especially if you are new to the feature.

Styling Anki cards in the latest version of the program

Styling Anki cards in the latest version

So where, exactly, do we do all the fancy stuff in this new layout?

Nice and Easy Styling

To give it a whirl, you can start with one of the simplest but most effective tricks: adding some colour to a card template with CSS. Colour-coding is fantastic for keeping multiple language projects apart if you use Anki for multiple languages or subjects.

Here’s a code snippet you can drop straight into that ‘Styling’ tab to give you a basic outlay for changing colours:

html, body {
background-color: green;
}
.card {
font-family: arial;
font-size: 28px;
text-align: center;
color: black;
background-color: white;
border: 9px solid red;
}
hr {
border: 2px solid blue;
}

Here is a version of that in action, modelled by my lovely new Swahili cards:

Brightening up some Swahili vocab cards using CSS in Anki

Brightening up some Swahili vocab cards using CSS in Anki

I was a bit sneaky and threw in something extra here: that smart little Tanzanian flag. It’s no bother to do this, either, but it got a little more difficult in the latest update.

No Thanky, Anki

Adding images to your cards via the application media folder, be they template images for all cards, or individual learning items, ensures that they sync across your devices. But oops – the link to the folder has now disappeared from the Preferences > Backup window.

Not to worry. You can still locate this it in your file system, which is a bit longer-winded but works the same way. On MacOS, you should find this in:

[your user directory]/Library/Application Support/Anki2/[your username]/collection.media/

In Windows, try:

AppData/RoamingData/Anki2/[your username]/collection.media

Once located, you can drop images and sounds into this folder to use in your cards. Every time you sync from the desktop, the app saves these files in your online account.

In the styling tabs, you can then reference them by filename – no path required – to add them to cards. For instance, to drop a Greek flag PNG, present in that folder as flag_fr.png, onto a card in the new edit window, paste in this code (adjust the width and height as necessary):

<img src="flag_gr.png" width="50" height="38" />

Embedding an image into an Anki card

Embedding an image into an Anki card template

It goes without saying that you should always be very careful when accessing and changing the contents of the collection.media folder.

The updates to Anki are great tweaks that improve usability (although we would love the Backups Folder link back, please!). Here’s to the app going from strength to strength in future revisions!

Anki Stats : Review Graph

Language Learning by Numbers : Anki Stats

If you use Anki to drill vocabulary, it’s tempting to sit back and let the app do all the work. Feed in your phrases, and simply let the algorithms work their magic.

On the other hand, if you really want to know what’s going on, you can dabble in the dark art of Anki stats.

Let’s face it, statistics are not everyone’s cup of tea. I’d be surprised if even half of regular Anki users take a look in the stats tab. Confession: I completely ignored the section myself for years. But with the start of a language resuscitation project recently, that extra information has become meta gold: a way to learn about my learning, and have more control over it.

In short, Anki stats allow us to view the past and see the future.

Get Him to the Greek

Way back when I started learning Anki, Greek was an active project of mine. I eventually rested that to focus on other languages for a while, so tagged my Greek deck as a ‘rested’ language in Anki.

Fast forward to 2020, and my Greek has been resurrected from its lengthy slumber. Firstly, I switched my Greek deck back to active in the Anki options. But given the lack of engagement for so long, I also went for the nuclear option: I reset all my Greek cards. I would drag those words and phrases back to the land of the living (languages) by drilling them all afresh.

The thing is, those active settings are now shared with my other active learning projects in Anki. Anki sets a maximum daily new card limit, which my revival Greek now takes up since I drill it first. That’s the plan for now, of course. But for the sake of planning, it would be great to know when my other languages will get a look-in again.

Stats Life

To keep on top of what’s coming your way soon, two sections in the stats are worth getting familiar with: Card Counts and Future Due.

Anki Stats: Card Counts

Anki Stats: Card Counts

Making sure the Greek deck is the one selected, I call up the Stats window. The number I’m interested in is New. These are new (or reset) cards that are queued to present during future reviews. Only when these have been drip-fed through will my other languages get a chance to serve up new words (if I continue to prioritise Greek).

The total currently reads 392. That sounds colossal, but at 10 new cards a day, I will have worked through them in just over a month. A month, that is, if I don’t add any more words for the time being! But that’s just the point: I can use the information here to make a more informed choice about how regularly I add more words to the deck. I am managing Anki, not the other way round.

Anki Stats : Future Due

Anki Stats : Future Due

Similarly, Future Due takes elements of the card count info, but lays it out graphically. This is incredibly useful – at a glance, you can see how the current crop of Greek words tails off after just over a month. By that point, I will have revised and learnt hundreds of Greek items. That’s also when my other projects will start popping in their fresh cards.

Taming Anki

Knowing your numbers is a little thing, but knowledge is power. Anki is no longer a black box spitting out words with no end in sight. I can see exactly where I’m going. And perhaps that’s the clincher for me, as a visual thinker. I like to see my way. (Incidentally, if you do too, there is an excellent heatmap visualiser available for Anki, too.)

Not everybody works well with woolly goals, either. The stats can give you a sneak peek into your language learning future. From that vantage point, you can visualise the finish line (or at least the next checkpoint).

By date X, I will know 500 words and phrases. That is powerful stuff.

You can be a surface user of Anki. It is tremendously useful even if you only use its basic functions. But getting a hold on your numbers can provide a world of support.

A spreadsheet containing German verb information.

Anki custom note types for complex morphology flashcards

If you use Anki, have you ever felt like the the out-of-the-box templates are a little basic?

The default card has just two fields for back and front. Of course, this is instantly relevant for simple vocabulary learning. You can begin adding your target-translation word pairs in straight away. It is intuitive and allows newcomers to get started straight away. Simplicity can be great!

However, as Anki works further and further into your language learning routine, that simple A-B card type can feel lacking. In particular, one single input box can seem a squash for all the extra information you learn alongside the dictionary form of your vocabulary.

Overloaded cards

A good example to illustrate this is the topic of irregular verbs. For example, take the French verb être (to be). It isn’t that useful to have a card that only lists the information “to be = être”. As a learner, you will surely want to add more detail, such as the present tense.

Now, using only the default card type, there are ways to include this detail. You might choose to add it in brackets after the infinitive, like “to be = être (je suis, tu es, il/elle est, nous sommes, vous êtes, ils/elles sont)”. But the problem is becoming obvious – your cards begin to look overloaded and messy.

Adding more info to basic Anki cards soon becomes messy.

Adding more info to basic Anki cards soon becomes messy.

There is a quick fix. When you create your vocab items, you can switch to inputting in HTML. Using HTML tags, you can then add line breaks and other formatting. With a bit of fiddling around, it is possible to separate out that info and at least make it more readable.

Formatting busy entries using HTML in Anki

Formatting busy entries using HTML in Anki

The result of HTML formatting an Anki text input

But still, all that information is jammed into a small input box. What happens when you want to make them more comprehensive, adding other tenses and so on? They will begin to look unwieldy.

And adding all that formatting is hardly economical with your valuable time. It would be better if the formatting were somehow automatically connected to the data itself, rather than completely manual.

Not only that, but there is also a good pedagogical reason for not cramming all that information into one space. During testing, all the material in that input box is bundled together as the answer. That is now a lot of material bound to single English prompt “to be”.

If only there were some way to separate it all out!

Anki custom card types

Well, a huge strength of Anki is how customisable and extensible it is. True, its advanced functionality might be well-hidden under a very plain interface, but you have a great deal of room to adapt and extend its basic workings.

It is Anki’s ability to create custom note types that will help us solve this problem. Custom note types allow you to define the fields for your cards. And they can be as comprehensive as you like, reflecting all the separate morphological parts of each vocabulary item.

It started with a list…

First things first: if you are creating word lists with very detailed, systematic additional info, Anki is probably not be the best place to collate it initially. Spreadsheet programs like Excel, Numbers or Google Sheets are much better geared up to this kind of thing. The format you need to save in is CSV (comma separated values), and all mainstream spreadsheet programs should give this option when saving or exporting.

Simply start adding your items, row by row. Use a column for each piece of information you want to keep separate. There is no need to use column headings. In the German verbs example below, there is a column for the infinitive, English translation, and then each of the six parts of the present tense.

Importing complex vocab items into Anki via CSV file

Importing complex vocab items into Anki via CSV file

Once you are happy with the number of items, you are ready to import it into Anki. And to make a fitting home for your new words, we create a new custom note type matching the fields in your spreadsheet list.

A wee note before we start: you need to be using the desktop program for this, as it is not possible in the mobile app. Before you do so, be sure to sync on all your devices, then sync on the desktop program. This is because the changes we make on the desktop client will require a full resync with Anki, and you don’t want to lose any progress from your devices. Also, to be safe, always back up your Anki decks before performing any major surgery on your precious cards!

Creating a new note type

In Anki, head to Tools > Manage Note Types. Once in the there, click Add, then Add: Basic and OK to select a template to base our new type on. We will use the basic one here, but you can experiment with more complicated types later on, if it takes your fancy!

Importing complex vocab items into Anki via CSV file

Importing complex vocab items into Anki via CSV file

Here, you add the fields that correspond to each column of information in your vocabulary spreadsheet. In the example below, I have also renamed the first two fields to reflect the verb-based example material more appropriately.

Importing complex vocab items into Anki via CSV file

Importing complex vocab items into Anki via CSV file

Now your data has a custom-made container to call home, you are ready to import it. Head to File > Import in your desktop app, and find the CSV file you saved / exported from the spreadsheet.

In the Type field, select the custom note type you just created. Then, select a deck to import it into (you might want to create a brand new one for this first).

Magically, Anki matches up the columns in your spreadsheet to the fields in your custom note type, as indicated in the lower half of that window. You can change how they marry up, but you shouldn’t have to as long as the number of spreadsheet columns and note fields tallies, and the order of them is the same.

Importing complex vocab items into Anki via CSV file

Importing complex vocab items into Anki via CSV file

That’s it! Anki has taken charge of your data, and will now drip-feed it to you daily along with your other cards.

But hold on – something isn’t quite right. None of the new, extra fields show in study mode. Egads! Not to worry – there is just one last step.

Styling your cards

The problem is that the basic type, which we used as a template, only shows the first two fields by default. That’s because it is based on a simple vocab flashcard with a front and back, and just two corresponding pieces of information. We need to style our new card type manually and add in those extra fields.

In the desktop Anki app, open up the Browse window. In the left-hand list of your Anki assets – decks, cards and so on – find the entry for your new note type. Click on it and you should see all your imported items on the right-hand side.

Locating your imported vocabulary via note type in the Anki Browse window

Locating your imported vocabulary via note type in the Anki Browse window

With any of those entries highlighted, you should see a button labelled Cards underneath. Clicking that opens up the card styling window, where you can add in placeholders for those missing items.

On the left, Anki gives you three editing panes. Bear in mind that this window represents a card with two ‘sides’. The first pane represents the front side of each vocab card. Then, there is a window you can use to add styling to both sides. Beneath that is a pane for the flip side. On the right is a preview of how both sides look.

On first opening this view, you will just see the first two fields (in the example below, Infinitive and Translation). Crucially, however, note that they are enclosed in {{double curly braces}}. This is Anki shorthand for a field when creating card templates.

With this knowledge, you are equipped to add in your extra fields. In our verbs example, the extra fields correspond to parts of the verb paradigm. Therefore, the field 1ps (first person singular) from the note type becomes {{1ps}} wherever it should appear on the card in study mode.

You can embed them within basic HTML, too, using divs, headings, paragraphs, line breaks and anything else to make them clear.

Importing complex vocab items into Anki via CSV file

Isn’t that better? Formatted cleanly, with styling applied automatically to every new vocabulary note of that type.

Top of the Anki class

Here’s where this technique can be really powerful. Now your information is separated, you can add in some of Anki’s other testing features to your card templates. If, for instance, you add test: after the first pair of curly brackets, that field becomes a type-in box in study mode.

You can put in as many of these as you want. In our verbs example, you could use type-in boxes to test the whole paradigm, like this:

Building more comprehensive tests using your Anki custom note types

Building more comprehensive tests using your Anki custom note types

Isn’t that a huge improvement on the original, basic A-B flip card? You have turned Anki into a real grammar testing machine. Take a look at the Anki manual for further tips and tricks about styling your cards in this way.

Keep playing

For sure, there is a lot more to this technique than the outline above. Our verbs example uses just a simple, one-sided card as a template, but there are many more options. As with all things Anki, it is well worth playing with the tools available to see what is possible.

After all, personalising your learning is taking charge of it. Have fun with your customisation!

Is your learning on fire? Just check your streak! Image from freeimages.com.

Feel the heat: get a visual grasp on Anki with this natty plug-in

Anki is an incredibly powerful tool with a heap of learning science behind it.

But do you ever feel, as an Anki user, that the process is all a bit of a mystery? That, instead of being passively fed material, you might like to glimpse inside the flashcard box and find out a little more about its electronic, spaced-repetition plans for you?

A chance question from a teacher and polyglot pal this week helped open up that box for me. And it’s worth sharing this little-known secret with anyone who want a bit more data than the all-knowing app is ordinarily willing to provide.

Streak test for gold

It all starts with a streak. A learning streak, that is: a golden motivational corridor in educational gamification.

Streak is the presentation of unbroken, habitual use of the app as an achievement. And it has long been a staple of gamified platforms like Duolingo, which quickly grew on its sticky back. The streak almost becomes an end in itself, powering the language learning along with it. Proud players share their incredible feats with others who hope to reach the same heights.

While Duolingo's streak feature is very popular, Anki does not have one.

On the face of it, streak does seem like an intuitively natural thing to want to know as a learner. How committed am I, in terms of how regularly I study? So it comes across as an odd omission from the standard Anki installation.

It all came to light when language buddy Marcel (so often a source of tips on everything language learning) asked if I knew where to find streak reporting in Anki. Despite the raft of data in the app’s familiar stats section, streak was nowhere to be seen. I was stumped.

Fortunately, a natty little plugin came to the rescue.

Review Heatmap

Review Heatmap adds a panel of information to the summary screens in the desktop version of Anki. Although the extra information seems quite standard, you might otherwise rack your brains to locate it in vain in a vanilla installation.

Although still in Beta for the latest 2.1.x stream of Anki releases (with a version for older versions here), it runs reliably and instantly exposes useful stats on the very first run.

The Review Heatmap plugin for Anki

The Review Heatmap plugin for Anki

Learning how you learn

Along with streak info, you can see a couple of other handy stats that do not feature in Anki’s regular data breakdown, including your average cards-per-day rate. And knowing about your learning is valuable meta-knowledge that can be just as useful as first-level learning material like vocabulary lists.

For example, take a look at the mass of colour in the plug-in display. Each square represents a day of your Anki year. You see the blanks? Those are the days on which you broke your streak. Interrogating the data like this can really help in the quest to learn how you learn.

Is there a pattern to them? Do they happen regularly? And can you use that information to preempt interruptions to your learning, and avoid them in future? In my case, hovering over my streak break blanks confirms what I suspected – they were days when family were visiting. Now I know this, I can try in future to review my Anki decks well in advance when I know I will have people round.

Streaks are not just about fun and pride. They encapsulate knowledge about your learning. And knowledge is power.

Pick a card, Anki card

The power of streaks is only one great way that Review Heatmap can boost your Anki learning. Like many things that just work, the app can be something of a black box. We adds words, Anki feeds them back to us using its clever algorithms. But sometimes, it can be informative to get a grasp on the workings inside that machine.

Exploring the heat map of coloured squares – the visual display style that gives the plug-in its name – can give you a more instinctive feel for how Anki schedules its cards. The darker the colour, the more cards scheduled on that day. By casting an eye over that annual map, you get a sense of the ebb and flow of card reviews, past and future. Hovering over individual squares even yields the exact number of reviews due on that day.

Not only that, but it is oddly satisfying to flick forward to subsequent years, and see reviews getting more and more infrequent. That gradual thinning out of card reviews is something special: it is Anki’s algorithm determining that you have, in accordance with the theory behind the system, memorised those words good and proper.

Obviously, numbers shift and change if you are actively adding cards all the time. But the visual snapshot is a fascinating way to start understanding how the spaced repetition approach plays out in real time.

Review Heatmap in lovely magenta.

Review Heatmap in lovely magenta.

Obviously, it also doesn’t hurt that Review Heatmap looks pretty funky in your Anki app. And there are some gorgeous colour options in the settings, too!

Turn up the heat

If you are ready to turn up the heat on your Anki routine by adding streak info and more, Review Heatmap is an essential add-on. Although it only boosts the desktop program, rather than the mobile apps, its insights can give you a real bird’s eye view over your learning.

As always with plug-ins, be sure to back up your Anki data before giving it a whirl.

 

Pull some Anki magic tricks out of your top hat! (Image from freeimages.com)

Anki magic tricks – by serendipity

I’ll make a confession here, as a die-hard Anki aficionado: I haven’t read the manual.

That is, at least, from cover to cover. For one thing, the Anki user guide is pretty thick (in digital terms). For another, I hate long instruction manuals. Instead, I learnt to use Anki by playing. Just dive in, have a go. From new electronic gadgets to household appliances, that spirit of exploration (and perhaps a touch of impatience) has followed me from childhood.

The inclination to tinker still turns up new tricks by the week. There is a lot to explore in Anki.

Back to basics

Sometimes, however, going back to basics can be helpful. A chance leaf through the Anki manual this week turned up some nuggets of wisdom I had long missed.

In fact, what I found out what not at all what I thought I was looking for. It started out as an attempt to tidy up my media folder by using subfolders. Would the media folder cope with these?

Well, partly. It appeared that the desktop and iOS apps behaved quite differently in this case, so I turned to the user guide for help. I didn’t find what I was looking for, sadly. It transpires that subfolders are recognised by the desktop program, but not the iOS app.

But all was not lost! Through my leafing through these online help pages, I did happen upon a really useful trick with filenames. How serendipitous!

Protect template images

To illustrate how useful this accidental trick is, let me set the scene. The topic of sprucing up Anki decks with media has long been one of my favourite topics to cover on this blog. From customising cards with images like flags, to maintaining a tidy media folder with the Tools > Check Media function, it’s par for the course for any Anki-loving linguist.

A customised Icelandic card in Anki

An Icelandic card in Anki –
complete with flag!

That said, I noticed something frustrating with that Check Media function in recent weeks. Each time I let it run to clean up unused image and sound files, my flag images were appearing in the list as candidates for deletion.

This is because they have no link to an actual Anki note – just a template.

Anki lists as unused all media not linked to a note.

Anki lists as unused all media not linked to a note.

To give a concrete example of this, let’s take this note in an Irish vocabulary deck for oráiste (orange), with a linked image file orange.png. That picture is perfectly safe from Anki’s musings, as it was added directly to the note. The Check Media tool will consider it in use by your decks, as it attached to the entry for oráiste. But your Irish flag image, flag_ie.png will only be present on the card template.

An Anki card with a note image and a template image.

An Anki card with a note image
and a template image.

Without being linked to an actual note, Anki flags your flag as unused every time you Check Media. And you don’t want to accidentally hit Delete Unused and get rid of it on a day when your attention is less than optimal!

Now, named as it is, Anki will always consider these files candidates for deletion. But the remedy I chanced across in the user guide is surprisingly simple. All you need to do is prefix any template-only media files with an underscore. Check Media then overlooks them, and they disappear from your list of deletion suggestions.

The Anki media folder, with underscores prefixing template media files.

The Anki media folder, with underscores prefixing template media files.

Two tricks for the price of one

My new Anki magic tricks didn’t stop there. I found the underscore tip, whilst searching for subfolders, in the section on custom fonts in card templates. Yes: it’s possible to go one step further with your customisation, and install fonts that travel around with your decks from device to device. This could be particularly useful if you are creating cards in a language with a very particularly, non-standard script.

Before we get too excited, however, the feature doesn’t yet work on the Mac OS version. It’s also unclear how much support there is in the mobile apps for it. Which returns me to the starting point of my query: subfolders, which also seem to lack full support across Anki’s platforms.

But then, that is the point of tinkering. Through playing around, we somehow find a way. And the user guide is always there when that approach fails!

You really do learn something every day, don’t you? May the spirit of the tinkerer follow you in your own Anki exploits. But dive into that guide now and again – you never know what you might find.

There's no better time to clean up your Anki! (Image from freeimages.com)

Anki Spring Cleaning : Brush up your decks!

It’s almost Spring! So doesn’t it feel like time for a refresh? A change is as good as a rest, and if that doesn’t go for our Anki decks too, I don’t know what does.

The thing with well-used tools is that, over time, the lose their sheen. Imperfections creep in, annoying niggles that we ignore for the time being. A note type out of place. An image not showing now and again. It may not interrupt our learning terribly, but after a while they can start to grate.

That’s why it’s a great idea to lay aside some time every few months to clean up your Anki decks.  If you are also a stickler for order, you will understand this declutter itch!

So what is the order of ceremonies for our Anki freshen-up blast? Our tidying spree here will focus on three areas:

  1. Bringing card images into the Anki file rather than external links
  2. Cleaning up unwanted media (without deleting your card images)
  3. Identifying and eliminating rogue note types

Before we start, remember to exercise caution when tinkering around in Anki’s underbelly. Preferably, make a full backup via the Export feature before you start. Better safe than sorry!

1. All-inclusive media

If you know a bit of HTML, it’s easy to spruce up your cards with colour and images. When I customise Anki cards, I often use flags, for instance. For the visual polyglot learner in you, flags can really help keep multiple languages separate in memory.

A customised Norwegian card in Anki

A Norwegian card in Anki

Now, for speed and ease, I often just search for a flag image online and use the URL directly in the card, like this:

<img src="https://upload.wikimedia.org/wikipedia/en/thumb/0/03/Flag_of_Italy.svg/1500px-Flag_of_Italy.svg.png" width="50" height="40" style="margin-bottom: 20px; border: 2px solid black" />

The problem here is not only that the code looks bloated and long-winded. More seriously, when using the decks without internet, the flags are simply absent, since they are downloaded every time.

Bring them home

The trick is to download and place your images inside Anki so they ‘live’ inside your data. Anki has a media folder just for this. Usually, the program places items there automatically when you add sound or images to a card, for example. But you can place them there yourself, too, and refer to them in your card code.

To open the media folder, open your Anki Preferences. Then, select the Backups tab. You should see a link titled Open backup folder – click it.

Anki Preferences

Anki Preferences

Now, the folder it opens isn’t the one we want. We need to go up one directory level, then into the folder called collection.media. This is where your Anki account keeps all of its MP3, PNG and similar files. With this folder open, it’s a good idea to close the Anki program in the background while we work.

Download and add the flag images and otherwise to this folder. You might want to resize them first. And, if you have lots of them, use a file naming system that keeps things tidy. For example, I prefix flag image files with fl_.

Close the folder once you are done, then reopen Anki. Head to the browser, select a card for customising, and you are set to use simply the file name on its own to link the image:

<img src="flag_it.png" width="50" height="40" style="margin-bottom: 20px; border: 2px solid black" />

Isn’t that so much better?

One note: you can nest files in subfolders and refer to them in your code, like flags/flag_it.png. However, while the desktop app recognises these paths, it seems that the iPhone app doesn’t. As with all these things, it’s worth playing around to see what you can and can’t do (while taking copious backups along the way, of course).

Edit 2021: the media folder is now a bit more hidden for Mac users. Here’s how to locate it now!

2. Media hangover

While we hang around in Anki’s media emporium, we may as well take the opportunity to keep on cleaning!

For a long time, I wondered why my Anki syncs were so large. It turned out that the media from old, since removed, shared decks were still hanging around. Inexplicably, deleting the deck hadn’t deleted the associated media. Carefully checking and deleting that wodge of unwanted files took multiple megabytes off my sync.

Of course, Anki has a tool for this already, in Tools > Check Media. In theory, it lists unused / unliked media for deletion. But sometimes a hands-on approach is just a bit more reliable. For one thing, your card images, like the flags above, will be listed as unused. They are not attached to cards, but rather your card templates, meaning they fall through Anki’s net. We don’t want the program to delete those!

A nice tidy Anki media folder

A nice and tidy Anki media folder

3. Rogue note types, begone!

Similarly, as with the media clutter, I’d accumulated some note types that meant nothing to me over prolonged use. Some of them seemed to be versions of standard cards but with odd suffixes, like Basic and Reversed Card-accfe. This seems to happen when cards are imported from shared decks, and there is some conflict with existing card types.

Fortunately, it is an easy problem to fix. Head to Tools > Manage Note Types on the home screen of the desktop app. Then, hit Add to create a new note type based on the same template as the strangely named notes.

Adding a new note type in Anki

Adding a new note type in Anki

After the new note type is ready, you can head to the Browse section of Anki. In the left-hand list, you should find an entry for the rogue note type. Click it to view cards assigned to that type, and highlight the notes you want to correct. Then go to Edit > Change Note Type, and change the selected cards to the new, corrected note type you set up above.

After you have done this to all the cards assigned to the strangely-named rogue types, you can go back to Tools > Manage Note Types on the main screen and delete them. Check that it reads 0 notes next to the type before you do – if not, you still need to change the type of some cards unless you no longer want to keep them.

Changing the note type in Anki

Changing the note type in Anki

As you get used to the internal machinery of the Anki app, you can do a regular sweep to keep on top of these foibles. It’s quite satisfying – a little akin to doing regular weeding to keep your garden in order – and will increase that sense of ownership you have over your vocabulary.

So roll up your sleeves, make plentiful backups, and get to Spring cleaning! Your Anki decks will positively shine for it.