-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
print(25,000) I'M IN yes the Python lessons are coming along nicely thanks for asking #15
Comments
Dev Diary 2014-11-07I skipped my intended MVN (minimum viable novel - ALARM, the word 'beep' fifty thousand times) and have instead been noodling about with BBEdit and regular expressions, particularly Multi-File Find. I've been pointing the following expression…
… at the folder of 50 SF Masterworks .epubs I torrented some time back (and never read). Basically pulling for (likely) complete past tense sentences in which 'he' or 'she' does something, while seeking to avoid any pesky punctuation or proper nouns. The resulting lines are sorted on second word, using BBEdit's Sort Lines… and subpattern matching:
Which yields something like:
So far I think there's something there…? Perhaps unsurprisingly, "He x'd"s outnumbers "She x'd"s by a factor of three. Have been considering the possibility of flipping gender of the sentences (again, think this is pretty doable with RegEx, in two halves), but haven't thought through technical/grammatical/theoretical implications of this. Once I have the patterning down I figure I can turn it into a python/shell script of some sort p. easily? Or at worst an Applescript. |
Might work well to alternate He... She... sentences and ditch the excess. |
Definitely scores some points* so far for using something that isn't generally recognized as a "programming language" to generate the text. (Last year, one of the entries was generated using a video game construction kit. I liked that.) *in my personal points scale, whatever that might be exactly. I would have said "scores some points in my book", but in this context that idiom is, er, fairly confusing. |
@hugovk: I'll likely try this, too, though I'm not sure whether the asymmetry is a boon.
I wonder whether him/her respectively as a drop-in replacement might work/be interesting, though it's not always so grammatically simple (as in the case of 'He decided it did.')… |
The vague, unknown it works quite well. |
@tullyhansen Ah, well, improving one's chops at a technology with which one is unfamiliar (and this includes programming languages) is a noble NaNoGenMo goal too, of course. Actually, just generating 50k meows in some 'orrible language like Malbolge or Wierd would be a feat. @hugovk As I was typing the previous paragraph it occurred to me that the pronoun one is also vague and unknown and
Hmmmm. |
Speaking of obscure technologies, somebody's trying to rewire Nethack to output text. |
Any update? |
Doing this this year, yeah.
The text was updated successfully, but these errors were encountered: