Follow

nanogenmo 

a nano-nanogenmo entry:

cat 4300-0.txt 2814-0.txt|python3 -c "import sys,re;w=set(re.split(r'[^A-Za-z\'’.\-,?\!;:]',sys.stdin.read()));l=['Once']
while w:l.append(min(w,key=lambda x:len(set(x)^set(l[-1]))));w.remove(l[-1])
print('DUBLIN WALK\nMartin O\'Leary\n\n'+' '.join(l))"

walks through joyce's ulysses and dubliners, picking words with similar spelling to the previous word

output: gist.github.com/mewo2/3e6ad222

(cc @nickmofo)

· · Web · 3 · 0 · 6

nanogenmo 

@aparrish @nickmofo thanks! it was sort of an attempt to do what you did in articulations, but on the cheap, code-wise

my favourite phrase I've found in there so far: "crinoline electronic recollection erection"

nanogenmo 

@mewo2 yo. this is great

nanogenmo 

@mewo2 Beautiful! I ran it on ... well, one of the two texts should be pretty obvious ... with great results!

nanogenmo 

This is my expanded and explicated version @mewo2

nanogenmo 

@nickmofo yep, that looks right! I wrote a little explanation on the github page: github.com/NaNoGenMo/2019/issu

nanogenmo 

@mewo2 Ha! well, I guess that was really for my own sake anyway

Sign in to participate in the conversation
Friend Camp

Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.