The cloze note type generates a content-depended number of cards per note.
I was wondering whether anybody could direct me to the associated code (I can Python), give me a tip or tell me it’s impossible, in order to create a different kind of content-depended variable card generation notes.
The use-case I have in mind is the classic vocabulary learning, and concerns specifically with the case of non-injective meaning relationship. What I mean is the following.
The usual case is a one-to-one mapping from the source and target languages.
front <> back
But homonyms are not infrequent. Say our target language is emoji, and we have the word which has three different meanings: smile, happy and cheerful.
Instead of having the two cards → smile, happy, cheerful.
smile, happy, cheerful. →
I’d like to have four cards → smile, happy, cheerful.
smile →
happy →
cheerful →
Generated from an annotation such as:
{{front::}} {{back1::smile}} {{back2::happy}} {{back3::cheerful}}
As sorata said, it wouldn’t generate empty cards if the the front evaluated to nothing (e.g. Meaning2 is empty). However, if you edit a card and remove a meaning, it will become empty and you would have to use the empty cards tool.