-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for explicitly male/female names? #9
Comments
I suppose that could be a useful feature. The primary goal is to clone
the RinkWorks name generator, but also add some useful, backwards
compatible extensions. Your idea could perhaps be another kind of
replacement class with its own letter.
|
@skeeto |
@1Hyena, What you need is a list of name parts for each gender; normally, the gender is in the suffix of the name; you can also have a list of house names for different tribes, for example. Then you would use those tables as the source of the two or four or whatever generators for each gender/tribe combination. In some implementation you can easily extend the generator tables by adding your custom tables to different symbols: In c++, you would add your tables to this: Line 31 in 4d97716
In JavaScript, you would add those to: Line 104 in 4d97716
Afterwards, you can then use such symbols in your generator at compile time. https://github.com/Kronuz/Xapiand/blob/30004104e3f52b8a9666bacaf15862306557e356/src/namegen.cc#L128 That example adds prefixes “K”, “L”, “E”, “F”, “k”, “l”, “e”, “f” to play with. “K” and “k” have lists of male and female prefixes and suffixes, but they’re mixed. You’d need to split the tables in two symbols (one for each gender) and use them in two or more different generators: a female drow generator, a male drow generator) |
@Kronuz |
@1Hyena I have no idea... if you come across such collection of names, or put one together, I’d be very interested. I’d love have there ability to generate names for multiple races. |
For female, this helps |
@AquariusPower For fantasy flavored names I'm starting to suspect that a template is the best approach as indicated by @Kronuz |
Not sure if this is a generator architecture related issue but since
D
andd
are marked as suitable for a stupid person's name I would expect there to be types of random replacements that indicate the gender of the name to be generated. What say you?The text was updated successfully, but these errors were encountered: