I got bored with manually creating c-tests in Moodle & so wrote this script to automagically generate them from copied & pasted paragraphs of text. Just thought it'd be worth sharing with the Moodle community: https://matbury.com/html/ctest-generator/index.php
Of course, GPL3 licensed & source code available here: https://github.com/matbury/ctest-generator
BTW, c-tests (a type of cloze deletion test) are one of the most effective integrative reading comprehension tests available. You can use them to test the readability of your instructional writing for your students, i.e. How well do they score when they read you lecture/lesson notes? and for general reading comprehension, e.g. for modern foreign languages. Unlike, other cloze deletion tests, they can be algorithmically generated & still maintain high degrees of (construct) validity & reliability.
I hope you find this useful!
Short bibliography on c-test research: