Hacker News new | past | comments | ask | show | jobs | submit login

>Please excuse the very minimal design, but after writing a lot of Single Page Applications I wanted to go the oposite way and write a website with less than 25KB.

The world could use more of this.

I took the simple quiz and my first question was from the Russian language site. I hadn't considered that Markov chains could work in other languages too. I wonder if there are any significant differences?




Hi, sorry everyone for the delay in answering, but timezones weren't nice to me.

I really like minimalist pages, but I would be lying if I said the complete oposite (like https://lw1.at) wasn't also fun to program.

The whole text-generation is language-independent [1]. I just split the source up in words (well technically NLTK-tokens) and merge them together after generating the text.

Therefore it even kind of works for Japanese [2] or Arabic. It's just a bit ugly as a lot of questions on non-English sites are in English and the chains end up as a mix.

[1] https://github.com/Findus23/se-simulator/blob/master/markov.... and https://github.com/Findus23/se-simulator/blob/master/text_ge...

[2] https://se-simulator.lw1.at/s/japanese.stackexchange.com




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: