MattDiamond
2004.08.18, 11:40 PM
Long story short- my nifty uDG game idea has hit a road bump. It needs a decent English dictionary in it.
I had two ideas in mind for this. First was to use the Webster's word list that is in /usr/share/dict/web2. I wrote a little dictionary class to read it all in to memory and perform lookups in it. Reads in fast, works great. But then I notice that plurals are not represented. So it has "catacomb" but not "catacombs". This will make my game annoying to play. (Imagine playing Boggle and not being allowed to put "s" on the ends of your words! No, my game isn't Boggle; that's just an example.)
Next idea, a bit more obvious, was to use the NSSpellChecker class. But it's designed to spell check a chunk of text, not do quick lookups for a list of candidates. No matter, it would still probably be fast enough for my needs. But it also includes common abbreviations, proper names, and any words the user felt like adding to it. This could cause problems in my game, though perhaps I could live with it.
I'd be interested if anyone has any knowledge or experience with third party dictionaries that are either free or can be commercially licensed. For uDG, free might be best, otherwise my submitted source code has a big hole in it. But I may table this game idea and do something else for uDG and ressurrect it as a commercial product down the road, in which case a commercial license isn't out of the question. So any info would be appreciated.
I know Freeverse has some kind of dictionary for at least one of their games; if I could get them to publish the game my worries would be over. :-)
Thanks.
I had two ideas in mind for this. First was to use the Webster's word list that is in /usr/share/dict/web2. I wrote a little dictionary class to read it all in to memory and perform lookups in it. Reads in fast, works great. But then I notice that plurals are not represented. So it has "catacomb" but not "catacombs". This will make my game annoying to play. (Imagine playing Boggle and not being allowed to put "s" on the ends of your words! No, my game isn't Boggle; that's just an example.)
Next idea, a bit more obvious, was to use the NSSpellChecker class. But it's designed to spell check a chunk of text, not do quick lookups for a list of candidates. No matter, it would still probably be fast enough for my needs. But it also includes common abbreviations, proper names, and any words the user felt like adding to it. This could cause problems in my game, though perhaps I could live with it.
I'd be interested if anyone has any knowledge or experience with third party dictionaries that are either free or can be commercially licensed. For uDG, free might be best, otherwise my submitted source code has a big hole in it. But I may table this game idea and do something else for uDG and ressurrect it as a commercial product down the road, in which case a commercial license isn't out of the question. So any info would be appreciated.
I know Freeverse has some kind of dictionary for at least one of their games; if I could get them to publish the game my worries would be over. :-)
Thanks.