skeeto / fantasyname Goto Github PK
View Code? Open in Web Editor NEWFantasy name generator
Home Page: http://nullprogram.com/fantasyname/
License: The Unlicense
Fantasy name generator
Home Page: http://nullprogram.com/fantasyname/
License: The Unlicense
Similarly to https://github.com/nlohmann/json wouldn't it make sense for namegen to also consist of only a single header file (namegen.h
) ? I know it's a matter of taste but for me personally those 1-header "libraries" have become really appealing lately. Anyone else thinking the same way?
hi!
great name generator!
we are trying to use it at ivan Attnam/ivan#363
on linux is working great, but on windows is outputting empty names,
any tips?
@Kronuz, I've noticed that the C++ version often misses groups entirely, and the generated name is wrong. For example:
$ ./namegen '(a)(a)' 10
> combinations = 1
a
a
a
a
a
a
a
a
a
a
As far as I can tell, it's the second "a" that's missed. And this only seems to happen for certain letters (in both positions), like "a", "h", "i", "j", "q", "u", "v", "x", and "y" (and maybe more).
This comes up alternations, too:
$ ./namegen '(a)(b|a)' 10
> combinations = 2
a
ab
a
ab
ab
a
ab
a
ab
ab
That one is unable to generate "aa". I poked around in GDB trying to figure this out (where, unfortunately, it failed to pretty print any of the C++ objects), but had no luck so far.
Hi! I read about this project from this blog post from 2009, when the generator was in Perl and it was... slooooowwwww.
I did an implementation of the parser and of the generator that is not based on Parse::RecDescent any more, and it's as fast as I could expect a reasonable implementation. The example <<<<<<<s>>>>>>>
takes less than 30 ms in my Linux VM.
I'll be describing it shortly on my blog, I'll add a reference here as soon as it is online. If you are interested I can contribute the whole implementation here instead of creating a different project, so we can avoid too much dispersion.
Let me know!
Not sure if this is a generator architecture related issue but since D
and d
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?
Sorry, new to GitHub, if this isn't the proper way to ask questions.
I'd love to create my naming template string and then bookmark the page so I could just visit it on my phone or tablet without having to go through the effort of typing it in each time or saving the string in a memo or email and pasting it in each time.
Is something like this possible with minimal effort? Or even already possible and I just totally missed it?
Thanks for building this utility!!
TMO
hello from community IVAN development : )
Wonderful name generator!
We have found a problem with the random number generator under MinGW at Attnam/ivan#400
on linux is working great, but on windows is outputting the same name sequence,
It seems like it is a known limitation: https://stackoverflow.com/questions/18880654/why-do-i-get-the-same-sequence-for-every-run-with-stdrandom-device-with-mingw
Any idea how we might be able to implement an alternative random number generator for this compiler toolchain?
This might help: https://blogs.msdn.microsoft.com/michael_howard/2005/01/14/cryptographically-secure-random-number-on-windows-without-using-cryptoapi/
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.