1 0
Sign in to rate

Cloze Anything

<10kB. Updated 2019-12-30. Only supports Anki 2.1.x.
The author has shared 5 other item(s).


This is the plugin corresponding to the Cloze Anything project. This plugin automates some of the otherwise manual work that would be required when following the approach of this project. While this plugin is not necessary to follow this approach, it does make it a lot easier. You may also be interested in the related shared deck that includes sample cards utilizing the card templates. The Cloze Anything project provides a JavaScript-based cloze implementation that is completely independent from Anki's Cloze Deletion and does not require any modifications to Anki (via a plugin) for it to work. This is achieved purely through JavaScript in the card template and a novel application of Anki's built-in (awesome) Selective Card Generation. It has no dependency on Anki's Cloze note type nor any other note types. It works on both Anki Desktop and Mobile. Replicating Anki functionality with JavaScript and card templates is not the goal however. The goal is endless flexibility. You can add cloze cards to any existing note type ("cloze anything") simply by adding new fields and card templates based on the instructions found here. You can also modify the templates completely, using them simply as a guide. Further details on the approach and how the plugin works can be found on the Github page. Below you will find only a short description of how the plugin works. The plugin does two things to make it easier for you to edit cloze deletions when following this approach: Support If you experience a problem or have any comments/ideas, please open an issue at the Issues page for the project on Github. Version History License Copyright 2019 Matthew Hayes Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Ask a Question


on 1578210824
The Cloze Anything project fits my needs perfectly. It is a pity its functionality is not built into vanilla Anki’s cloze capabilities.

I learn languages mostly with sentence flashcards. While the recognition side (L2→L1) is straightforward even with the most complex of sentences, production (L1→L2) tends to be confusing with longer sentences. The solution is to break down production cards into shorter, simpler pieces using cloze deletion. The Cloze Anything method removes the need to have all of the sentences copied into a special, separate note type, and thus saves time and helps to keep everything in one place.

So… many thanks, Matthew ^_^
Your wonderful JavaScript wizardry helps me a lot!

— Júda
Comment from author before post was edited
Thanks for the feedback! I'm glad you find it useful.