I'm looking for a macro (or perhaps a package?) that would support "fill in the missing word(s)” questions.
I started with
\def\missingword#1{#1}
\def\missingword#1{\rule[-2pt]{5cm}{.1pt}}
Di \missingword{dov'è} sei?
and got
at “first compilation” and for the answers, I could recompile with the second definition inactivated. However, it would be nice if LaTeX could calculate the space needed for “dov'è” in the current typeface and font size and multiply by a factor to support “handwriting needs more space than typography” so it wouldn’t be a static length like the sample above and also “give a hint” about the answer's length/complexity. TIA.
PS. I just discovered a typo; it should be only “dove”, not “dov'è”. Sorry about that for all of you who speak Italian.
cloze
package at: ctan.org/search?phrase=cloze\def
in LaTeX (if you don't really need it and know what you are doing).expl3
is unlikely to be scared by a Halloween theme!