Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How are these templates parsed? I mean what code goes through these and decides which word to use?


You can see a much fancier text-generator of this sort at http://eblong.com/zarf/mutagen/about.html

(I once ported it to Python and wrote a parser for a more-convenient syntax like the OP's, then never released it partly because I'd hate to see spammers using it.)


It probably just chooses a word at random from each {} clause.




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

Search: