RName: a grammar file based name generator

I’ve wanted a name generator a couple times recently. The name generator I want consists of a grammar file for generating names within that grammar.

The ultimate use for this will be in games. I want to be able come up with naming conventions so that I can generate internally consistent names for places, characters, and items.

I hacked together a hard-coded version and put it up on Bitbucket. I called it RName. The project page is here.

It’s very bad code right now. I just got something up there so I would have a starting point.

My next steps are:

  1. spec out the grammar for the grammar files
  2. get a parser for the grammar files
  3. write the actual generation code
  4. make a ui or console frontend

Time for flashbacks to compilers.

About Evan Gates

Switching from Visual Studio and C# to vim and ruby.
This entry was posted in pet projects, rname and tagged , . Bookmark the permalink.

Leave a Reply