For example, I have this text: This is a good reason to stop.
(word counts is always greater than 5)
words = ['This', 'is', 'a', 'good', 'reason', 'to', 'stop']
flashcards_count = ciel(len(word) / 3)
The result I'd like to have:
[
'This __ a good ______ to ____.'
'____ is a ____ reason __ stop.'
'This is _ good reason to stop.'
]
As you may notice I'm try to avoid putting blanks in sequence, except if it's the last flashcard.
So for this, I shuffled the words
and chunked it into 3 to make each flashcard, but the result might be like this:
[
'This is a ____ ______ __ stop.'
'____ __ _ good reason to stop.'
'This is a good reason to ____.'
]