Open Source Evil Overlord Name Generator

3 points by victorNicollet ↗ HN
It's written in JavaScript.

Try it out here:

http://www.nicollet.net/files/blog/evil-overlord/

GitHub:

https://github.com/VictorNicollet/Evil-Overlord-Names

It uses a simple format for describing how names should be constructed, which makes it easy to extend, and to guarantee that all names are equally likely to be generated. It can currently generate 23037267 different names.

Pull requests are welcome if you wish to help me add new name formats or elements !

2 comments

[ 2.7 ms ] story [ 13.1 ms ] thread
Nice collection!

I looked instantly at the code and it is not bad at all, maybe except for this piece:

        function is_array(x) {
          return Object.prototype.toString.call(x) === '[object Array]';
        }
What's wrong with Array.isArray()?
You're right. I guess I am used to making things work for IE8...