The following started out as an attempt to automate Throne of Salt's Pantheon Generator, then drifted into something that is a bit more smooth and conceptually "neat" - the sortof thing Levi-Strauss would come up with if he wasn't limited by empirical examples - and by that point it acquired too much technical debt to be hacked back into its original purpose. Still, it's been a while since I posted, so like a panicked undergraduate scrounging to get from a C- to a C+, I will submit you some work that has been done in lieu of good work that hasn't.