C151_H - AndrewBenavides/RedditDailyProgrammer GitHub Wiki
This week's Intermediate challenge involved re-emvoweling, which means reconstructing a series of words given their consonants and vowels separately, in order.
For most inputs, there are a huge number of valid ways to re-emvowel them. Your goal this time is to produce a valid output that also resembles an English sentence, as much as possible. For each sample input, there is one best answer (the sentence I actually used to produce the input). Good solutions that don't produce the best answer are acceptable, but you should aim for answers that are significantly better than random.
A typical strategy is to begin by analyzing a corpus of English text for word frequencies or other patterns. You can use whatever techniques or data sources you wish, but your program must run completely autonomously, without relying on human judgment during runtime.
The challenge inputs this time are all based on English sentences taken from the web. The word "a" does appear in these sentences. Other than the word "a", all words in the sentences appear in the Enable word list, and none of the words contain punctuation.
Along with your solution, be sure to post your results from running the challenge inputs!
Two strings, one containing only consonants, and one containing only vowels. There are no spaces in the input.
A space-separated series of words that could be disemvoweled into the input, each word of which must appear in your word list. The output should resemble an English sentence (without capitalization and punctuation) as closely as possible.
thffcrrprtdthtblckdndcrfwhdbnrdrd
eoieeoeaaoaeaaueaeeoee
the officer reported that a blockade and a curfew had been ordered
thdcryptntmsbltdtrmnthtthplnsrnddfrtypftrnsprt
eeioeaiaeoeeieaeaaeieeoaeoao
nfcthblvdthrwsnthrcncptytbyndhmnndrstndngdtthmrvlscmplxtyndthclckwrkprcsnfthnvrs
iaeeieeeeaaoeoeeeouaueaiueoeaeouoeiaeooeiiooeuiee
thhmrthpthsthtnsnvnthblmngsndtrckllcnsprtnsrthtthtlftngrtrvlngbckthrtyyrstnsrhsprntsmtndltmtlymtcngvntsvntgnwbfrlydscrbdsclssc
euoeaoeeioeeeooiouaaoieoeueaeaeoaeeaeaeiaieaoeueiaeeeauiaeaeaieiiaeoeaieieaaai
Thanks to /u/abecedarius for inspiring this challenge on /r/dailyprogrammer_ideas!