The way it works is simple. It takes a library of names and analyzes each name, taking parts of it, storing all parts in a library. It then takes the next part, stores it in the library and links it to the previous part. It's kind of like a Markov Chain, except the implementation is different.
To demonstrate, I have an example right here:
TriNameGen: Heroes
These are all generated names, and it takes the names from several text files:
marvel_hero_male.txt
marvel_hero_female.txt
dc_hero_male.txt
dc_hero_female.txt
misc_hero_male.txt
misc_hero_female.txt
Anyway, that's how it works in the Java version. Right now, I'm working on getting it to work in JavaScript, which isn't easy, considering I can't really test it on big cases due to the requirement of AJAX calls. I could force people to use JSON for this but I won't, because even that isn't an optimal solution.
Plus, I already got the basis done.
Download plugin
What needs to be done:
- File loading, possibly defining different categories in a separate JSON file
- Proper commenting, possibly also for JSDoc
- Integration into the name generator
- Easy hooks for the events interpreter
- Function to export the libraries to JSON