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!
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
Account name:
If you don't have an account you can create one now.
HTML doesn't work in the subject.


Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

March 2016

20212223 242526

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 21st, 2017 05:02 am
Powered by Dreamwidth Studios