Show HN: Probabilistically Generating HN Post Titles
I was inspired by this comment
  <a href="https://news.ycombinator.com/item?id=6813162" rel="nofollow">https://news.ycombinator.com/item?id=6813162</a><p>I find that lookback of 2 generally creates more entertaining titles. Lookback of 3 usually seems to just splice together two titles (which can be hilarious, and is usually more grammatically correct), and lookback of 1 tends to generate more nonsense.<p>Some fun ones I found just now:<p><pre><code>    The Neuroscientist Who Discovered He Was a Teenage Hacker

    How my comment on TechCrunch got me a new, useful superpower?

    PHP Sucks But I Didn't

    Windows 8 is 20% faster than C

    The Navy’s newest warship is powered by WebGL

    Cards Against Humanity has made comments even worse, I'm leaving

    How Porsche hacked the financial system and made a html5 game, polished it many many times
</code></pre>
Interestingly, if I change the code to pick the most likely word, followed by the most likely word, etc. the "most probable" post is "The New York Times and The Internet"<p>If I limit it to just 2013 posts, it is "The NSA surveillance".<p>My site is running on the smallest Digital Ocean droplet (512MB), if it goes down, I will feel silly. If it does, code can be found here: <a href="https://gist.github.com/grantslatton/7694811" rel="nofollow">https://gist.github.com/grantslatton/7694811</a>