LoremSwiftum icon indicating copy to clipboard operation
LoremSwiftum copied to clipboard

Randomly generate a "meaningful" word or words.

Open soaapp opened this issue 2 years ago • 3 comments

Hey there, wondering if its ok to add a feature request:

Hoping to add support to generate random meaningful words that can be contributed to either a word generator or "username" generation.

If there's anyway I can help with this, I would be very interested as well.

Thank you for the awesome package!

soaapp avatar Nov 26 '23 18:11 soaapp

Hi Jay, I’m not really working actively on this project anymore, but feel free to open a PR with a sketch of this functionality. Have you thought about where to source the meaningful words? And as for the username, you can consider building these from firstName and lastName.

lukaskubanek avatar Nov 27 '23 14:11 lukaskubanek

Hey Lukas, thanks for your response.

I did end up building sort of a rough idea of how it works. It pretty much just reuses your Lorem.word (now called Lorem.realWord) and pulls a word from the macOS dictionary (located in /usr/share/dict/web2a). My current version had to recreate the web2a file as the one inside the macOS seems to be locked. I have tested it in a side project I have and seems to work.

Let me know what you think, I can try to submit a rough PR if you're ok with it.

Cheers, Jay

soaapp avatar Dec 08 '23 01:12 soaapp

Hi Jay, this looks like it’d only be available on macOS, right? That would be kind of limiting considering that the library is platform-agnostic.

lukaskubanek avatar Dec 17 '23 18:12 lukaskubanek