in reply to Re: Adventures in multilingualism
in thread Adventures in multilingualism

When I first read this, I thought you meant actual words, in a dictionary, but it sounds like you mean combinations.

Well, generating words was the original goal. Combinations are a step on the way to that goal. Once the combinations are generated, grepping for real words (e.g. using /usr/share/dict/words) is easy. But you have flipped the algorithm around, and used the words to generate the numbers, which is actually quite nice. I hadn't thought about it that way. Many thanks for the reply!

Replies are listed 'Best First'.
Re^3: Adventures in multilingualism
by inman (Curate) on May 05, 2005 at 07:56 UTC
    This will work for well known words, the problem with this method is that there are many four letter combinations that are not necessarily English words but will be contractions of words or acronyms: MUFC => 'Manchester United Football Club', PLNE => 'plane'. There is also L33T which bends the rules by using numbers. Just call 0800 123-SK8R for your local half pipe...
      You are right, I mainly presented this as an easy hack of getting 90% there. Even with the examples you give, if I have my own dictionary, or generate a special one ahead of time, this procedure will work fairly well. For example I can generate abbreviations, without too much effort, from an existing dictionary which will cover your PLNE example. (L33T requires some work, but if you use it I pity you.) The dictionary your method uses is in a human's head. Sometimes these work well, sometimes they don't.

      Re: MUFC -- I'll probably get downvoted/flamed for this, but I'm a reds fan. To some that is truly a 4-letter word. :-)