Objective
Your challenge is to write a program that, given a paragraph from a book, will output another program that prints out that paragraph. (See my example program in an answer)
Scoring
The link below is to a .txt file on GitHub containing 100 paragraphs to use your code on. Your score will be the product of (the size of your main program in bytes) and ((the mean size of the output programs produced by your main program for the 100 paragraphs) raised to the power of 1.5). The power of 1.5 is added into the formula to encourage the prioritization of the brevity of the programs produced more than the brevity of the main program.
https://github.com/ACertainArchangel/Program-Generator-Print-a-Paragraph.git
Information/Hints
- Make it easy for yourself to unit test and please include your testing code. Feel free to modify my python testing script from the sample answer.
- Do not attempt to reconstruct the paragraphs by scraping; the challenge is to generate them programmatically.
- You may use the knowledge that all paragraphs are from "Alice in Wonderland" and "The Strange Case of Dr Jekyll and Mr Hyde" by taking advantage of recurring words in these books.
- The main and produced programs do not have to be in the same language.