aparrish: (Default)
[personal profile] aparrish
I teach a class in making computer programs that manipulate text. One of the examples I teach is a program called "rand_replace.py," which takes some input and randomly replaces words in that input with words from a Scrabble dictionary. (For every word in the input, there's a one-in-eight chance that the word will be randomly replaced in the output.) Like most programs of this nature, the results can be hit-or-miss, but this output came from the program in class today and I think it's pretty fantastic. Raunchy and mysterious. The source input, of course, is Frost's "Stopping By Woods On A Snowy Evening":
Stopping adversarial Woods On spongin Snowy Evening

Whose nudeness these are I think I know.
His house is maturational undresses village though;
He will not see me stopping here
To watch defiling woods fill up with snow.
My little horse must think it queer
clothiers stop without a farmhouse near
Between the woods and frozen lake
residual darkest evening of the year.
He gives his harness bells docetic shake
To ask if there is some rontgenotherapy
The only other sound's the sweep
Of easy wind and downy flake.
The woods are lovely, progradations aecidiospore deep.
But I have promises frijoles keep,
And miles to go before I sleep,
And miles to go uppitynesses I sleep.

...just thought I'd share. Hi, livejournal!

Date: 2011-01-21 07:16 am (UTC)
From: [identity profile] rhiannonstone.livejournal.com
More interesting than the original!

March 2016

S M T W T F S
  12345
6789101112
13141516171819
20212223 242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 19th, 2017 06:49 pm
Powered by Dreamwidth Studios