Nano-NaNoGenMo or #NNNGM

Ah, distinctly I remember it was in the bleak November;
And each separate bit and pixel wrought a novel on GitHub.

April may be the cruelest month, and now the month associated with poetry, but November is the month associated with novel-writing, via NaNoWriMo, National Novel Writing Month. Now, thanks to an offhand comment by Darius Kazemi and the work of Hugo van Kemenade, November is also associated with the computer-generation of novels, broadly speaking. Any computer program and its 50,000 word+ output qualifies as an entry in NaNoGenMo, National Novel Generation Month.

NaNoGenMo does have a sort of barrier to entry: People often think they have to do something elaborate, despite anyone being explicitly allowed to produce a novel consisting entirely of meows. Those new to NaNoGenMo may look up to, for instance, the amazingly talented Ross Goodwin. In his own attempt to further climate change, he decided to code up an energy-intensive GPT-2 text generator while flying on a commercial jet. You’d think that for his next trick this guy might hop in a car, take a road trip, and generate a novel using a LSTM RNN! Those who look up so such efforts — and it’s hard not to, when they’re conducted at 30,000 feet and also quite clever — might end up thinking that computer-generated novels must use complex code and masses of data.

And yet, there is so much that can be done with simple programs that consume very little energy and can be fully understood by their programmers and others.

Because of this, I have recently announced Nano-NaNoGenMo. On Mastodon and Twitter (using #NNNGM) I have declared that November will also be the month in which people write computer programs that are at most 256 characters, and which generate 50,000 word or more novels. These can use Project Gutenberg files, as they are named on that site, as input. Or, they can run without using any input.

I have produced three Nano-NaNoGenMo (or #NNNGM) entries for 2019. In addition to being not very taxing computationally, one of these happens to have been written on an extremely energy-efficient electric train. Here they are. I won’t gloss each one, but I will provide a few comments on each, along with the full code for you to look at right in this blog post, and with links to both bash shell script files and the final output.

OB-DCK; or, THE (SELFLESS) WHALE


perl -0pe 's/.?K/**/s;s/MOBY(.)DI/OB$1D/g;s/D.r/Nick Montfort/;s/E W/E (SELFLESS) W/g;s/\b(I ?|me|my|myself|am|us|we|our|ourselves)\b//gi;s/\r\n\r\n/
/g;s/\r\n/ /g;s//\n\n/g;s/ +/ /g;s/(“?) ([,.;:]?)/$1$2/g;s/\nEnd .//s’ 2701-0.txt #NNNGM

WordPress has mangled this code despite it being in a code element; Use the following link to obtain a runnable version of it:

OB-DCK; or, THE (SELFLESS) WHALE code

OB DCK; or, THE (SELFLESS) WHALE, the novel

The program, performing a simple regular expression substitution, removes all first-person pronouns from Moby-Dick. Indeed, OB-DCK is “MOBY-DICK” with “MY” removed from MOBY and “I” from DICK. Chapter 1 begins:

Call Ishmael. Some years ago—never mind how long precisely—having little or no money in purse, and nothing particular to interest on shore, thought would sail about a little and see the watery part of the world. It is a way have of driving off the spleen and regulating the circulation. Whenever find growing grim about the mouth; whenever it is a damp, drizzly November in soul; whenever find involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral meet; and especially whenever hypos get such an upper hand of , that it requires a strong moral principle to prevent from deliberately stepping into the street, and methodically knocking people’s hats off—then, account it high time to get to sea as soon as can. This is substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with .

Because Ishmael is removed as the “I” of the story, on a grammatical level there is (spoiler alert!) no human at all left at the end of book.

consequence


perl -e 'sub n{(unpack"(A4)*","backbodybookcasedoorfacefacthandheadhomelifenamepartplayroomsidetimeweekwordworkyear")[rand 21]}print"consequence\nNick Montfort\n\na beginning";for(;$i<12500;$i++){print" & so a ".n;if(rand()<.6){print n}}print".\n"' #NNNGM

consequence code

consequence, the novel

Using compounding of the sort found in my computer-generated long poem The Truelist and my “ppg 256-3,” this presents a sequence of things — sometimes formed from a single very common four-letter word, sometimes from two combined — that, it is stated, somehow follow from each other:

a beginning & so a name & so a fact & so a case & so a bookdoor & so a head & so a factwork & so a sidelife & so a door & so a door & so a factback & so a backplay & so a name & so a facebook & so a lifecase & so a partpart & so a hand & so a bookname & so a face & so a homeyear & so a bookfact & so a book & so a hand & so a head & so a headhead & so a book & so a face & so a namename & so a life & so a hand & so a side & so a time & so a yearname & so a backface & so a headface & so a headweek & so a headside & so a bookface & so a bookhome & so a lifedoor & so a bookyear & so a workback & so a room & so a face & so a body & so a faceweek & so a sidecase & so a time & so a body & so a fact […]

Too Much Help at Once


python -c "help('topics')" | python -c "import sys;print('Too Much Help at Once\nNick Montfort');[i for i in sorted(''.join(sys.stdin.readlines()[3:]).split()) if print('\n'+i+'\n') or help(i)]" #NNNGM

Too Much Help at Once code

Too Much Help at Once, the novel

The program looks up all the help topics provided within the (usually interactive) help system inside Python itself. Then, it asks for help on everything, in alphabetical order, producing 70k+ words of text, according the GNU utility wc. The novel that results is, of course, an appropriation of text others have written; it arranges but doesn’t even transform that text. To me, however, it does have some meaning. Too Much Help at Once models one classic mistake that beginning programmers can make: Thinking that it’s somehow useful to read comprehensively about programming, or about a programming language, rather than actually using that programming language and writing some programs. Here’s the very beginning:

Too Much Help at Once
Nick Montfort

ASSERTION

The “assert” statement
**********************

Assert statements are a convenient way to insert debugging assertions
into a program:

assert_stmt ::= “assert” expression [“,” expression]

A plot

So far I have noted one other #NNNGM entry, A plot by Milton Läufer, which I am reproducing here in corrected form, according to the author’s note:


perl -e 'sub n{(split/ /,"wedding murder suspicion birth hunt jealousy death party tension banishment trial verdict treason fight crush friendship trip loss")[rand 17]}print"A plot\nMilton Läufer\n\n";for(;$i<12500;$i++){print" and then a ".n}print".\n"'

Related in structure to consequence, but with words of varying length that do not compound, Läufer’s novel winds through not four weddings and a funeral, but about, in expectation, 735 weddings and 735 murders in addition to 735 deaths, leaving us to ponder the meaning of “a crush” when it occurs in different contexts:

and then a wedding and then a murder and then a trip and then a hunt and then a crush and then a trip and then a death and then a murder and then a trip and then a fight and then a treason and then a fight and then a crush and then a fight and then a friendship and then a murder and then a wedding and then a friendship and then a suspicion and then a party and then a treason and then a birth and then a treason and then a tension and then a birth and then a hunt and then a friendship and then a trip and then a wedding and then a birth and then a death and then a death and then a wedding and then a treason and then a suspicion and then a birth and then a jealousy and then a trip and then a jealousy and then a party and then a tension and then a tension and then a trip and then a treason and then a crush and then a death and then a banishment […]

Share, enjoy, and please participate by adding your Nano-NaNoGenMo entries as NaNoGenMo entries (via the GitHub site) and by tooting & tweeting them!

VIdeo of My PRB Reading

Thanks to host Joseph Mosconi, I read at the Poetics Research Bureau in Los Angeles from two recent computer-generated books. Sophia Le Fraga and Aaron Winslow read with me on this evening, on July 21.

I have now posted 360 video of my readings of both The Truelist and Hard West Turn.

Montfort’s Poetic Research Bureau reading of July 21, 2018

I read from The Truelist (Counterpath, 2017). The Truelist is available as an offset-printed book from Counterpath, as a short, deterministic, free software program that generates the full text of the book, and as a free audiobook, thanks to the generosity of the University of Pennsylvania’s Kelly Writers House, its Wexler Studio, and PennSound.

After this, I read from Hard West Turn (Bad Quarto, 2018), a computer-generated novel about gun violence in the United States, the first of a series. Each novel, copy-edited by the author/programmer, will be re-generated annually for release on July 4. Hard West Turn (2018) is available in print in a very limited edition, only 13 copies for sale + 3 artist’s proofs. The short free software program that generated the text is available as well. The first draft of this project was done as a NaNoGenMo (National Novel Generation Month) program in November 2017.

My @party Talk on Computer-Generated Books

I just gave a talk at the local demoparty, @party. While I haven’t written out notes and it wasn’t recorded, here are the slides. The talk was “Book Productions: The Latest in Computer-Generated Literary Art,” and included some discussion of how computer-generated literary books related to demoscene productions.

Computer-Generated Books

Here’s a first effort (drafted, initially, at 2am on July 22) at a bibliography of computer-generated books.

These are books in the standard material sense, somehow printed, whether via print-on-demand or in a print run. I may include chapbooks eventually, as they certainly interest me, but so far I have been focusing on books, however bound, with spines. (Updated June 23, 2017: I added the first chapbooks today.) Books in any language are welcome.

So far I have not included books where the text has been obviously sorted computer (e.g. Auerbach, Reimer) or where a text has been produced repeatedly, obviously by computer (e.g. Chernofsky). Also omitted are computer-generated utilitarian tables, e.g. of logarithms or for artillery firing. Books composed using a formal process, but without using a computer, are not included.

I have included some strange outliers such as books written with computational assistance (programs were used to generate text and the text was human-assembled/edited/written) and one book that is apparently human written but is supposed to read like a computer-generated book.

I’d love to know about more of these. I’m not as interested in the thousands of computer-generated spam books available for purchase, and have not listed any of these, but let me know if there are specific ones that you believe are worthwhile. I would particularly like to know if some of the great NaNoGenMo books I’ve read are available in print.

Updated in 2016 11:43am July 22: Since the original post I have added Whalen, Tranter, Balestrini, and five books by Bök. 5:35pm: I’ve added Thompson and Woetmann. 8:37am July 23: Added Bogost. 8:37pm July 24: Added Bailey, Baudot, Cabell & Huff, Cage x 2, Huff, Hirmes. October 12-14: Added Archangel, Seward, Dörfelt. Updated in 2017 June 12: Added Morris, Pipkin. June 23: Added Clark, Knowles 2011, The Maggot, and four chapbooks: Knowles & Tenney, Parrish, Pipkin (picking figs…), Temkin. September 5: Added Mize. Updated in 2018 September 18: Added the first six Using Electricity books, Montfort, Perez y Perez, Parrish, Zilles, Bhatnagar, Läufer; also, Montfort 2018, King Zog, Goodwin. November 29: Added the three Constant 2013 books. Updated in 2019 February 21: Added Feldman, Giles, Lavigne x 2, Parrish (The Wcnsske…), Waller, Ye. March 5: Added Zolf. September 10: Added Allison, Donnachie, Marche, McConnell, and Soft Ions. September 25: Added Brzeski. October 31: Added Moure, Pentecost, and Reed.

Archangel, Cory. Working on my Novel. New York: Penguin, 2014.

Allison, Karmel and Gregory Chatonsky. Machines Upon Every Flower. Montréal: Anteism Publishing, 2019.

Audry, Sofian. for the sleepers in that quiet earth. Boston and New York: Bad Quarto, 2018.

Bailey, Richard W. Computer Poems. Drummond Island, MI: Potagannissing Press, 1973.

Balestrini, Nanni. Tristano. Translated by Mike Harakis. London and New York: Verso, 2014.

Balousek, Matthew R.F. and Emma Stewart. Exchange of Letters. A Hive of Mechanical Wasps, third installment. Santa Cruz, 2017.

Balousek, Matthew R.F. Gold Chocobo. A Hive of Mechanical Wasps, fourth installment. Mount Vernon, 2018.

Balousek, Matthew R.F. Or, the Whale. A Hive of Mechanical Wasps, second installment. Santa Cruz, 2017.

Balousek, Matthew R.F. Post Meridiem. A Hive of Mechanical Wasps, first installment. Santa Cruz, 2016.

Baudot, Jean. La Machine a écrire mise en marche et programmée par Jean A. Baudot. Montréal: Editions du Jour, 1964.

Bhatnagar, Ranjit. Encomials: Sonnets from Pentametron. Using Electricity series. Counterpath: Denver, 2018.

Bogost, Ian. A Slow Year: Game Poems. Highlands Ranch, CO: Open Texture, [2010].

Bök, Christian. LXUM,LKWC (Oh Time Thy Pyramids). San Francisco: Blurb, 2015.

Bök, Christian. MCV. San Francisco: Blurb, 2015.

Bök, Christian. Axaxaxas Mlo. San Francisco: Blurb, 2015.

Bök, Christian. The Plaster Cramp. San Francisco: Blurb, 2015.

Bök, Christian. The Combed Thunderclap. San Francisco: Blurb, 2015.

Brzeski, Samuel. I laugh while crying. And I barely cry. What’s wrong with me? TEXSTpress, Bergen. 2019

Cabell, Mimi, and Jason Huff. American Psycho. Vienna: Traumavien, 2012.

Cage, John. Anarchy (New York City, January 1988). Middletown, CT: Wesleyan University Press, 1988.

Cage, John. I-IV. Cambridge, MA: Harvard University Press, 1990.

Carpenter, J. R. GENERATION[S] Vienna: Traumawien, 2010.

Cayley, John and Daniel C. Howe, How it Is in Common Tongues. Providence: NLLF, 2012.

Cayley, John. Image Generation. London: Veer Books, 2015.

Chamberlin, Darick. Cigarette Boy: A Mock Machine Mock-Epic. [Seattle]: Rogue Drogue: 1991.

Chan, Paul. Phaedrus Pron. Brooklyn: Badlands Unlimited, 2010.

Clark, Ron. My Buttons Are Blue and Other Love Poems from the Digital Heart of an Electronic Computer. Woodsboro, Maryland: Arcsoft Pub, 1982.

Constant Verlag Brussels. The Death of the Authors: James Joyce & Rabindranath Tagore & Their Return to Life in Four Seasons. Brussels, Belgium. 2013.

Constant Verlag Brussels. The Death of the Authors: Rabindra[na]th Tagore & Virginia Woolf & Their Return to Life in Four Seasons. Brussels, Belgium. 2013.

Constant Verlag Brussels. The Death of the Authors: Sherwood Anderson & Henri Bergson & Their Return to Life in Four Seasons. Brussels, Belgium. 2013.

Daly, Liza. Seraphs: A Procedurally Generated Mysterious Codex. [San Francisco]: Blurb, 2014.

Donnachie, Karen Ann and Andy Simionato. A Nonhuman Reading of Sabri Cetinkunt’s Mechatronics (2006): Part A. The Library of Nonhuman Books, 2019.

Feldman, Shira. the limits of my language are the limits of my world. n.p., n.d.

Friedhoff, Jane. it is a different/friction. 2015.

Fuchs, Martin and Peter Bichsel. Written Images. 2011.

Funkhouser, Christopher. Electro þerdix. Propolis Press. Least Weasel Chapbook Series. 2011.

Giles, Harry Josephine and Martin O’leary. New Minstrelsy of the Scottish Border (Dialecty). Book Works, 2018.

Goodwin, Ross. 1 the Road. Jean Boîte Éditions: Paris, 2018.

Hartman, Charles and Hugh Kenner. Sentences. Los Angeles: Sun and Moon Press, 1995.

Heldén, Johannes and Håkan Jonson. Evolution. Stockholm, OEI Editör, 2014.

Hirmes, David. Directions From Unknown Road to Unknown Road. [Handmade edition of 10.] The Elements Press: 2010.

Huff, Jason. Autosummarize. [McNally Jackson]: 2010.

Kennedy, Bill and Darren Wershler-Henry. Apostrophe. Toronto, ECW Press, 2006.

Kennedy, Bill and Darren Wershler. Update. Montréal: Snare, [2010.]

King Zog. Google, Volume 1. Jean Boîte Éditions: Paris, 2013.

Knowles, Alison, James Tenney, and Siemens System 4004. A House of Dust. Köln & New York: Verlag Gebr. König, 1969.

Knowles, Alison. Clear Skies All Week. Onestar Press, 2011.

Larson, Darby. Irritant. New York and Atlanta: Blue Square Press, 2013.

Läufer, Milton. A Noise Such as a Man Might Make. Using Electricity series. Counterpath: Denver, 2018.

Lavigne, Sam. SELF HELP BOOK. New York, NY: Self Published, 2018.

Lavigne, Sam. Taxonomy of Humans According to Twitter. New York, NY: Self Published, 2018.

Maggot, The. Heroic Real Estate Otter of the 21st Century. lulu.com, 2013.

Marche, Stephen. “Twinkle, Twinkle.” Wired. Dec. 2017, pp. 108-115.

McConnell, Gregory Austin. Today is Spaceship Day. n.p., 2019.

Mize, Rando. Machine Ramblings. n.p., 2016.

Montfort, Nick. World Clock. Cambridge: Bad Quarto, 2013.

Montfort, Nick. Zegar ?wiatowy. Translated by Piotr Marecki. Krakow: ha!art, 2014.

Montfort, Nick. #! Denver: Counterpath, 2014.

Montfort, Nick. Megawatt. Cambridge: Bad Quarto, 2014.

Montfort, Nick, Serge Bouchardon, Carlos León, Natalia Fedorova, Andrew Campana, Aleksandra Malecka, and Piotr Marecki. 2×6. Global Poetics series. Los Angeles: Les Figues, 2016.

Montfort, Nick. The Truelist. Using Electricity series. Counterpath: Denver, 2018.

Montfort, Nick. Hard West Turn. Cambridge: Bad Quarto, 2018.

Moure, Erín. Pillage Laud. Moveable Books, 1999. BookThug, 2011.

Morris, Simon. Re-writing Freud. York, England: Information as Material, 2005.

Parrish, Allison. The Ephemerides. Access Token Secret Press, 2015.

Parrish, Allison. Articulations. Using Electricity series. Counterpath: Denver, 2018.

Parrish, Allison. The Wcnsske-Gonshanshcoma Reconstructions. QUEER.ARCHIVE.WORK, 2018.

Pentecost, Stephen M. Thomas Browne’s Commonplace Book. robineggsky.com, 2016.

Pérez y Pérez, Rafael. Mexica: 20 Years–20 Stories [20 años–20 historias]. Using Electricity series. Counterpath: Denver, 2017.

Pipkin, Katie Rose. picking figs in the garden while my world eats Itself. Austin: Raw Paw Press, 2015.

Pipkin, Katie Rose. no people. Katie Rose Pipkin, 2015.

Racter. “Soft Ions.” Omni. Oct. 1981, pp 96-148.

Racter, The Policeman’s Beard is Half Constructed. Illustrations by Joan Hall. Introduction by William Chamberlain. New York: Warner Books, 1984.

Reed, Aaron A. Subcutanean. USA, 2019.

Rosén, Carl-Johan. I Speak Myself Into an Object. Stockholm: Rensvist Förlag, 2013.

Dörfelt, Matthias. I Follow. Series of unique flip-books with computer-generated aspects of animation. Made by the artist. 2013-present.

Seward, Rob. Death Death Death. VHS Design LLC, 2010.

Stewart, Emma. My Lovers Learn About the Economy of Debt. n.p., n.d.

Stewart, Emma. Slapping Bandaids on Earthquakes: Thoughts about life under surveillance. n.p., n.d.

Temkin, Daniel. Non-Words. Edition of 100, each with unique words generated by same algorithm used in @nondenotative. n.d.

Thompson, Jeff. Grid Remix: The Fellowship of the Ring. San Francisco: Blurb, 2013.

[Tiar, Louis-Charles]. Let us Now Praise 5,202 Persons. n.p., n.d.

Tranter, John. Different Hands. North Fremantle, Australia: Fremantle Arts Centre Press, 1998.

Walker, Nathan. Action Score Generator. Manchester: if p then q, 2015.

Waller, Angie. Seeing Like a Computer. New York, NY: Unknown Unknowns, 2018.

Whalen, Zach. An Anthrogram. Fredericksburg, Virginia: 2015.

Woetmann, Peter-Clement. 105 Variationer. Cophenhagen: Arena, 2015.

Ye, Katherine and A. Zhou. Hyperbible. SVN Systems, 2017.

Zilles, Li. Machine, Unlearning. Using Electricity series. Counterpath: Denver, 2018.

Zolf, Rachel. Human Resources. Coach House Books: Toronto, 2007.

NaNoGenMo 2014: A Look Back & Back

There were so many excellent novel generators, and generated novels, last month for NaNaGenMo (National Novel Generation Month).

I thought a lot of them related to and carried on the work of wonderful existing literary projects — usually in the form of existing books. And this is in no way a backhanded complement. My own NaNoGenMo entry was the most rooted in an existing novel; I simply computationally re-implemented Samuel Beckett’s novel Watt (or at least the parts of it that were most illegible and computational), in my novel generator Megawatt (its PDF output is also available). For good measure, Megawatt is completely deterministic; although someone might choose to modify it and generate different things, as it stands it generates exactly one novel. So, for me to say that I was reminded of a great book when I saw a particular generator is pure praise.

Early in month, Liza Daly’s Seraphs set a high standard and must have discouraged many offhand generators! Liza’s generator seeks images and randomizes text to produce a lengthy book that is like the Voynich Manuscript, and certainly also like the Codex Seraphinianus.

Allison Parrish’s I Waded in Clear Water is a novel based on dream interpretations. Of course, it reminds me of 10,000 Dreams Interpreted (and I am pleased, thanks to my students from long ago, to have the leading site on the Web for that famous book) but it also reminds me of footnote-heavy novels such as Infinite Jest. Let me note that a Twine game has already been written based on this work: Fowl are Foul, by Jacqueline Lott.

I found Zarkonnen’s Moebius Tentacle; Or the Space-Octopus oddly compelling. It was created by simple substitution of strings from Moby-Dick (one novel it clearly reminded me of), freeing the story to be about the pursuit of an octopus by space amazons. It wasn’t as polished as I would have liked (just a text file for output), and didn’t render text flawlessly, but still, the result was amazing. Consider how the near-final text presents the (transformed) Tashtego in his final tumult:

A sky-hawk that
tauntingly had followed the main-truck downwards from its unnatural home
among the stars, pecking at the flag, and incommoding Lazerbot-9 there;
this spacebat now chanced to intercept its broad fluttering wing between the
hammer and the plasteel; and simultaneously feeling that etherial thrill,
the submerged robot beneath, in her death-gasp, kept her hammer frozen
there; and so the spacebat of heaven, with archangelic shrieks, and her
imperial beak thrust upwards, and her whole captive form folded in the
flag of Vixena, went away with her spaceship, which, like Satan, would not sink
to transwarp till she had dragged a living part of heaven along with her, and
helmeted herself with it.

Sean Barrett wrote two beautiful generators (at least) – the first of which was How Hannah Solved The Twelve-Disk Tower of Hanoi. Deliberate, progressing, intelligent, and keeping the reader on the edge of her seat – this one is great. But, that generator (drafted by November 9) wasn’t enough, and Barrett also contributed (only a day late) The Basketball Game, an opera generator that provides a score (with lyrics) and MIDI files. It’s as if “I got Philip Glass!” indicates that one is rebounding.

Eric Stayton’s I Sing Of takes the beginning of the Aeneid as grist, moving through alternate invocations using WordNet. I like the way different epics are invoked by the slight changes, and was reminded of Calvino’s If on a winter’s night a traveler.

Sam Coppini’s D’ksuban Dictionary, although also just a text file, is a simple but effective generator of a fictional language’s dictionary. Less like the Devil’s Dictionary, more like the (apparently unpublished) lexicon of Earth: Final Conflict. I’m sure literary works in D’ksuban will be forthcoming soon.

Ben Kybartas’s Something, Somewhere is wonderfully spare and evocative – more Madsen than Hemingway.

Finally, Thricedotted’s The Seeker is an extraordinary concrete novel in the tradition of Raymond Federman’s Double or Nothing. The text, based on wikiHow, is good and serves well to define a protagonist who always wishes to do right, but the typographical framework is really excellent.

These are just a few comments before NaNoGenMo goes as stale as a late-December pumpkin. I hope you enjoy tis work and other work that was done last month, and that you keep an eye peeled for further novel generators – next November and throughout the year.

Megawatt

Megawatt coverThe fruits of my National Novel Generation Month (NaNoGenMo) labors are now online; the Megawatt generator is available as a single 350-line Python file, while the novel it deterministically generates can be obtained as a PDF, megawatt.pdf or in epub format, megawatt.epub. From the program’s docstring and from the preface to the book:

Megawatt is the title of both a computer program, the source code
to which you may be reading, and the output of this program, which in
many ways is like a standard novel and which you may instead be reading.
This note appears at the beginning of both.

The program Megawatt is based on passages from Samuel Beckett’s novel Watt, first published in 1953 but written much earlier, when Beckett was aiding the French Resistance during World War II.

The novel Megawatt leaves aside all of the more intelligible language of Beckett’s novel and is based, instead, on that which is most systematic and inscrutable. It does not just recreate these passages, although with minor changes the Megawatt code can be used to do so. In the new novel, rather, they are intensified by generating, using the same methods that Beckett used, significantly more text than is found in the already excessive Watt.

(Please note: The following information is handy if you want to, for instance, modify the program and generate a PDF or epub yourself. You don’t need to do this to read the novel. You can download it in PDF: megawatt.pdf or in epub format: megawatt.epub.)

To produce the novel in markdown format, run megawatt.py (a Python 2
program) with TextBlob (a text processing library) installed.

% python megawatt.py > megawatt.text

To produce PDF and epub documents, use pandoc:

% pandoc -V geometry:paperwidth=5.5in \
-V geometry:paperheight=8.25in \
-V geometry:margin=.7in -o megawatt.pdf \
megawatt.text
% echo ‘% Megawatt’ > info.txt
% echo ‘% Nick Montfort’ >> info.txt
% pandoc -o megawatt.epub info.txt megawatt.text

Megawatt was written/generated for the second NaNoGenMo (National
Novel Generation Month) in November 2014, and is free software.