Following from my work on #128, here’s a second entry. This one follows the #NNNGM format, using the same lookup tables for vowels and consonants to generate a stream of random words, formatted into semi-rhythmic sentences and paragraph breaks.
The only substantive modification was changing the ch digraph to x which meant I could drop a few extra characters by using String#upcase in place of String#capitalize. This extra space was needed in order to fold in the sentence and paragraph formatting.
Following from my work on #128, here’s a second entry. This one follows the #NNNGM format, using the same lookup tables for vowels and consonants to generate a stream of random words, formatted into semi-rhythmic sentences and paragraph breaks.
The only substantive modification was changing the ch digraph to x which meant I could drop a few extra characters by using
String#upcase
in place ofString#capitalize
. This extra space was needed in order to fold in the sentence and paragraph formatting.Details