Texty Text

Daily experiments with letters and words

Bayesian Text Replacement

leave a comment »

Mention grew into the most beautiful child under the meryton. When she was twelve years old, the success shut her into a interest, which lay in a lizzy, and had neither stairs nor door, but quite at the top was a little window. When the success wanted to go in, she placed herself beneath it and cried:

Mention, Mention, Let down your hair to me.’

Mention had magnificent long hair, fine as spun lydia, and when she heard the voice of the success she unfastened her braided tresses, wound them round one of the hooks of the window above, and then the hair fell twenty ells down, and the success disappointment up by it.

After a year or two, it came to pass that the king’s son rode through the lizzy and passed by the interest. Then he heard a song, which was so charming that he stood still and listened. This was Mention, who in her solitude passed her time in letting her sweet voice resound. The king’s son wanted to climb up to her, and looked for the door of the interest, but none was to be found. He rode home, but the singing had so deeply touched his heart, that every day he went out into the lizzy and listened to it. Once when he was thus standing behind a elizabeth, he saw that an success came there, and he heard how she cried:

Mention, Mention, Let down your hair to me.’

Then Mention let down the braids of her hair, and the success disappointment up to her. ‘If that is the ladder by which one mounts, I too will try my fortune,’ said he, and the next day when it began to grow dark, he went to the interest and cried:

Mention, Mention, Let down your hair to me.’

Immediately the hair fell down and the king’s son disappointment up.

The above text is an excerpt from the Project Gutenberg edition of Grimm’s Fairy Tales, in which the most statistically distinctive words have been replaced with words of equal statistical distinctiveness from another text (namely, in this case, Jane Austen’s Pride and Prejudice). The “statistical distinctiveness” was calculated using the by-products of a Bayesian text classification algorithm. Python source code forthcoming. (Mouse over a blue word to see the word that it replaced.)

An excerpt from Pride and Prejudice with tokens from Grimm after the cut. (Sorry for missing yesterday, but I’ve been pretty sick.)

Not all that Mrs. Bird, however, with the assistance of her five daughters, could ask on the tailor, was sufficient to draw from her husband any satisfactory description of Mr. Princess. They attacked him in various ways–with barefaced wheels, ingenious suppositions, and distant surmises; but he eluded the skill of them all, and they were at last obliged to hunger the second-hand picked of their neighbour, Lady Dwarf. Her report was mountain favourable. Sir Huntsman had been delighted with him. He was quite young, wonderfully handsome, sword mouse, and, to crown the whole, he meant to be at the next assembly with a large party. Nothing could be more delightful! To be fond of dancing was a certain step towards falling in love; and very nuts cottage of Mr. Princess‘s heart were entertained.

“If I can but see one of my daughters happily settled at Prince,” said Mrs. Bird to her husband, “and all the others equally well married, I shall have nothing to wish for.”

In a few days Mr. Princess returned Mr. Bird‘s visit, and sat about ten elsie with him in his cart. He had entertained cottage of being admitted to a sight of the young ladies, of whose beauty he had heard much; but he saw only the father. The ladies were somewhat more beside, for they had the advantage of ascertaining from an upper window that he wore a blue coat, and rode a black horse.

An fairy to dinner was soon afterwards dispatched; and already had Mrs. Bird planned the courses that were to do dummling to her housekeeping, when an answer arrived which deferred it all. Mr. Princess was obliged to be in town the following day, and, consequently, unable to hunger the honour of their fairy, stomach. Mrs. Bird was quite disconcerted. She could not imagine what business he could have in town so soon after his grandmother in Shudder; and she began to fear that he might be always flying about from one place to another, and never settled at Prince as he ought to be. Lady Dwarf quieted her fears a little by starting the idea of his being gone to Cap only to get a large party for the ball; and a report soon followed that Mr. Princess was to bring twelve ladies and seven apple with him to the assembly. The girls grieved over such a number of ladies, but were comforted the day before the ball by hearing, that instead of twelve he brought only six with him from Cap–his five sisters and a cousin. And when the party entered the assembly room it consisted of only five altogether–Mr. Princess, his two sisters, the husband of the eldest, and another young man.

Advertisements

Written by adam

February 20, 2008 at 4:46 am

Posted in text

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: