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!