New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Purple Mastadon. Shivering Shrew. Quick Penguin. What is the source?
raindog308
Administrator, Veteran
in General
I've run into several providers/services where when you provision something, you get a url like green-grapevine.example.com or delighted-shrew.example.com. Recent examples off the top of my head are URLs I've gotten from Netlify and PikaPods (maybe @m4nu can answer).
Is there a standard library that is used for generating these names, or are all these different projects scanning thesauruses and writing their own libraries?
Comments
https://github.com/usmanbashir/haikunator#language-ports
Pretty much every Linux system has a dictionary file at
/usr/share/dict/words
or/usr/dict/words
so they probably just pick random words from that.On a default Debian installation in English, it's symlinked to
/etc/dictionaries-common/words
which is itself symlinked to/usr/share/dict/american-english
(unless you uninstall thewamerican
package).I have 2 lists, one contains adjectives, the other animal names. both can be found on public gists. a simple function generates the name depending on how many adjectives i want.
https://gist.github.com/hugsy/8910dc78d208e40de42deb29e62df913
https://gist.github.com/borlaym/585e2e09dd6abd9b0d0a