regexalgorithmtextspelling

Generate words that fit in Guids (just for fun)


I have some tests that use guids. The guids used don't need to be enormously unique, they just need to be guids. Random guids are boring - so I'm trying to find fun guid words. Right now, I don't have anything better than "00000000-feed-dada-iced-c0ffee000000". Ideally I'd generate a list of verbs, nouns, prepositions.

Having only spent a few minutes on this problem, here's where I am:

  1. I have a word list (somewhat large) from puzzlers.org.
  2. Apply this regex to identify words that could be used in a Guid (o=0, i=1) ^[ABCDEFOI]{1,8}$
  3. Squint.

Why doesn't someone have a funny guid generator available for my immediate gratification? How would you approach this? Any suggestions on how to improve this special guid generation process are welcome.


Solution

  • The solution you started is exactly how I would approach it. And it looks like someone already did the work for you:

    http://nedbatchelder.com/text/hexwords.html