I have put the LoreGen C# source code on GitHub:
Feel free to peruse my code!
However, there are a couple of issues:
- The data files are not included in the commit. You can get them from the Worldbuilder download
- I haven’t really cleaned up the code for it to be coherent to external eyes
- I have not released the code under a license yet, so I still reserve all rights
I hope to address these issues in the near future