Wednesday, January 17, 2007

And the longest line is...

I wrote a little program this evening that takes a text and works out the longest line in it..

I fed it (1) the dictionary (2) Heart of Darkness (3) Alice in Wonderland

Here are the results:

(1) pneumonoultramicroscopicsilicovolcanoconiosis
(2) the _Golden Hind_ returning with her rotund flanks full of treasure, to be
(3) `Why,' said the Gryphon, `you first form into a line along the sea-shore--'

hmmm....

No comments:

...

.. It's in words that the magic is -- Abracadabra, Open Sesame, and the rest -- but the magic words in one story aren't magical in the next. The real magic is to understand which words work, and when, and for what; the trick is to learn the trick. ... And those words are made from the letters of our alphabet: a couple-dozen squiggles we can draw with the pen. This is the key! And the treasure, too, if we can only get our hands on it! It's as if - as if the key to the treasure is the treasure! ------- John Barth, Chimera