[LRUG] Ruby random cool word generator

Matthew Rudy Jacobs matthewrudyjacobs at gmail.com
Thu Nov 13 03:38:29 PST 2008


As a first attempt,
I'd screenscrape urban dictionary
http://www.urbandictionary.com/popular.php?character=A ... Z

bung those into an array,
take the words from there,
and choose a random pair, joining them together.

preferably with a high weighting on "dog" and "cool"

"butterFaceDog"
is a good one I feel.

2008/11/13 James Smith <james at floppy.org.uk>

> 2008/11/13 Geir Freysson <geir.freysson at gmail.com>:
> > One thing that crossed my mind was to take the dictionary on my Linux
> > box and randomly choose words from that. This however, would have the
> > regrettable side effect of people getting screen names they might
> > object to!
>
> I was thinking this the other day - it would be very useful to have a
> ruby gem that generated decent random usernames. We have a requirement
> for "anonymous" posts on our site, but we still need to show a
> username so that they don't look any different from normal posts.
>
> > Anyone have any ideas for a solution? Are there any free collections
> > of cool words out there? A ruby random cool word generator? A
> > dictionary minus the sh**?
>
> There are so many name generators out there, some of those must have
> dictionaries that could be re-used, or even code that could be quickly
> adapted. Would be nice to have a gem that generated names from a
> dictionary, or set of dictionaries.
>
> If you end up writing something, let me know and I will try to help
> out. Likewise, if I start something I will give you a shout.
>
> cheers,
> James
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20081113/2b3a6a27/attachment-0003.html>


More information about the Chat mailing list