NaNoGenMo / 2019

National Novel Generation Month, 2019 edition.
97 stars 5 forks source link

Markov's Fanfiction #4

Open MineRobber9000 opened 4 years ago

MineRobber9000 commented 4 years ago

A few years ago, I used a homebrew markov lib and a Fanfiction.net scraper to write "Markov's Fanfics". It wasn't good (by any stretch of the imagination), but it was funny, and a nice project.

For NaNoGenMo this year, I'm going to revisit this idea. Using a decent markov library (4th order markov chains ftw) and more fanfictions than before, I hope to generate a novel-length fanfiction.

LuRsT commented 4 years ago

Looking forward to it!

MineRobber9000 commented 4 years ago

I wrote my first blog post about it. Turns out having a bookmarklet maker on standby is a big help.

In the post, I mention a bookmarklet. Here it is:

javascript:void%20function(){function%20e(e){var%20n=document.createElement(%22textarea%22);n.value=e,document.body.appendChild(n),n.select(),document.execCommand(%22copy%22),document.body.removeChild(n)}var%20n=document.getElementsByTagName(%22a%22),t=%22%22;for(i=0;i%3Cn.length;i++){var%20a=n[i].pathname.match(/^\/s\/([0-9]+)/);null!==a%26%26(t=t+a[1]+%22,%20%23%20%22+n[i].innerText+%22\n%22)}e(t)}();
MineRobber9000 commented 4 years ago

It's finished! https://khuxkm.tilde.team/nanogenmo/2019/