I needed to do some "Mad Libs" user-controlled string substitution for a project, so I developed a system that allows both coloring and replacement per word. It's not verified to be robust in all scenarios: long words aren't broken up and substitutions containing multiple words will be treated like a single big word.
You might find these libraries I wrote some years ago helpful for your MadLibs, TripleFox.
PROPORTIONALLY SPACED TEXT (user defined)
COMPREHENSIVE IMAGE TEXT LIBRARY
If you don't plan to use the QWERTY keyboard for your MadLibs, you can use this virtual keyboard I put together:
Something I'm not doing in any of my routines, TF, is a check for long character words and breaking them apart according to their pattern of vowels and consonants.
"...though not estab-"
"lished, it was readily known to be the case."
In fact, you could probably automatically determine where to divide a long word based on the number of characters in it, divide by two, and backtrack to the first consonant or vowel, depending upon how many are intermittently linked.
Except for "e." E doesn't look very good as the last character for most splits.
"enter-prise" yes, double consonant division
"com-puter" (double consonant division)
"calcu-lation" (standard vowel division)
"repres-entation" (skip "E," subtract, one, get next division marker, "s", vowel, consonant, vowel)
Hope This Helps !
[Please log in to post a comment]