Various books operating on principles of contingency use some method for transforming or replace parts of an existing novel in some way. This is a notebook demonstrating three such methods.

Google Colaboratory


Sample Output

sample-replaced.txt

If Nodier belonged by right of his first literary impressions to the classical school, his liberal spirit soon identified itself with that of the romanticists. His face, full of genial originality, bore the characteristics of a man living between two literary epochs; but history little by little soon effaced all these tints and shades. Nodier was also one of those improvisators who talked their books. Contemporaries, in reading them, seemed to hear him speak, and a little imagination added to the surprises of these written conversations; but when the voice ceases the charm vanishes.

If XXXXXX belonged by right of his first literary impressions to the classical school, his liberal spirit soon identified itself with that of the romanticists. His face, full of genial originality, bore the characteristics of a man living between two literary epochs; but history little by little soon effaced all these tints and shades. XXXXXX was also one of those improvisators who talked their books. Contemporaries, in reading them, seemed to hear him speak, and a little imagination added to the surprises of these written conversations; but when the voice ceases the charm vanishes.