Multiple Clozes in a phrases from import

I came across this old thread and hoped to revisit it and/or get a solid answer on whether it’s currently possible or not.

Can you put multiple cloze words in a sentence? For example:

Sentence, Translation, clozes, pronunciation, note
Límite de no descompresión, No Decompression limit, {{ Límite, Descompresión }},

And when you have more than one clozes, it just generates cards for each of the clozes from the “one” entry?

This has kinda turned into a suggestion but only if some form of the functionality doesn’t exist :slight_smile:

2 Likes

Yes, you can define a cloze that contains more than one word.

No, it doesn’t generate a card for each of the clozes. It turns the string between the double braces into a (multi-word) cloze, so this becomes what you need to match when you’re playing the sentence. For instance, if you’re playing in text input mode, you need to type this string into the box.

You can click on the “+” button (“Add sentence to collection”) and try it out.

Not sure what you’re describing. I’ve tried adding multiple closes and it only accepts the first cloze.

Also, this is specific to importing. I don’t think I mentioned it but that’s how I maintain my phrases and vocabulary.

That said, I’ve tried both.
The first method, if you have multiple clozes, it only accepts the first cloze and clips off the rest of the sentence for the card.
Ex: para el {{ desayuno }} comí {{ huevos }} y {{ pollo }}.
Output: para el desayuno

The second method, the upload just errors out with a very unspecific* error.

  • I really wish the guys writing this software would properly handle errors so when there is an upload issue we don’t HAVE to ask for help (or spend loads of time debugging).

At first I thought you were asking whether a single sentence could have a cloze consisting of a sequence of multiple words. (Answer: it can, and I often add sentences with clozes of sequences of two, three, or four words.) However, now that I’ve reread what you wrote, I see that you were asking whether a single sentence can have multiple single-word clozes defined, with the result being the addition of the sentence multiple times, once for each cloze.

My question: Given that you’re already writing an import file, why wouldn’t you just write the sentence multiple times, and each time append a different cloze? It’s just as easy to simply copy and paste the sentence a few times, each time appending the cloze you want, as it is to write a field that contains multiple clozes. This is especially true if you’re starting from a spreadsheet.