2019 icon indicating copy to clipboard operation
2019 copied to clipboard

facetious

Open nickmontfort opened this issue 6 years ago • 2 comments

cat 100-0.txt 4300-0.txt|python -c"import collections,sys,re;d=collections.defaultdict(list);[1 for w in set(re.split('\W',sys.stdin.read())) if d[re.sub('[^aeiou]','',w.lower())].append(w)];print('.\n '.join([' '.join(d[p]) for p in sorted(d.keys())]))"

Another #NNNGM (Nano-NaNoGenMo).

Bins the vocabulary of Shakespeare's complete works, and Joyce's Ulysses, into sentences/paragraphs according to their vowel patterns, then presents these paragraphs in order according to that pattern. By 'vowel,' I mean lexical, full vowels. So words with no aeiou are first, then words with just a single a, then words with two a's and no other vowels, and so on. The word 'facetious' itself occurs in a sentence with all of the other aeiou words, of course.

facetious

Also find the code here.

Example novel.

nickmontfort avatar Nov 22 '19 21:11 nickmontfort

Example novel.

This is 404.

hugovk avatar Nov 25 '19 09:11 hugovk

Thanks for the note; not sure what I did to mess that up.

The novel is in place now as plain text at its original location, right down to the word 'Lugugugubrious.'

nickmontfort avatar Nov 25 '19 15:11 nickmontfort