Definition of long text
Long text usually shows emphasis, for instance,
yaaaaaaaaaay. Usually the vowel is replicated many times. In this challenge we require:
At least 3 times, which means
yaaaayare allowed, but
Consistent, which means that shoes can turn out be
shooooeees. Of course, it seems that no one would do that, however, this is to reinforce the next law.
Undoubling, which means
beepingturns out to be
beeeeeeeepiiiing. This is not the case for long text, but such makes this challenge non-trivial.
Thus, the long text might turn out shorter than the original text, that is,
aaaaacan turn out to be
Your input will be a sentence, that is, you may not assume there are only words. We do not guarantee all will be English words, so look out for
The long text for the input.
We assume you repeat 3 times.
The fox yawns... =>
Theee fooox yaaawns...
Everything is good!!!!! =>
Eeeveeerythiiing iiis goood!!!!! and NOT
EEEveeerythiiing iiis gooooood!!!!!
Eeny, meeny, miny, moe =>
Eeeeeeny, meeeny, miiiny, moooeee
Note the treatment of capital letters: The first letter remains capital, and the others are lowered.
eE will be
eeeEee, they won't be the same. "Undoubling" only happens for letters which are of the same case (like
AA, but not for
Only the letters from
u are vowels, case insensitive.
yayas input result in