Jump to content
  • Advertisement
Sign in to follow this  
Poigahn

? Accessing Computers Spell Checking Dictionary ?

This topic is 2080 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have created a simple Word Puzzle Game where the player creates words from 36 Random Letter Tiles. Everything Works , updates scores like it was designed. However, the game requires a spell checker in order to verify the spelling of a word that the player creates in order to be complete.

Currently, during testing, the player has to add each and every word to a list that maintained by the program. ( If the player has already entered the word they do not have to do it again )

How do I Utilize spell checker or any other Dictionary that might already exist on the Computer ?

Share this post


Link to post
Share on other sites
Advertisement
Accessing the any spell checkers on the computer would depend on what platform(s) your game is being made for. However, rather than do that, there are open source spell check libraries available such as hunspell.

Share this post


Link to post
Share on other sites

How do I Utilize spell checker or any other Dictionary that might already exist on the Computer ?


As far as I know, there is no such built-in dictionary with an API exposed to applications on Windows or Macs that you can count on being there on user's systems. This isn't the way you would want do this sort of thing anyway because you want to be in charge of what counts as a legal word: MS Word's spell checker probably contains very common proper names that you wouldn't want to be legal in a word game.

If you want a dictionary you need to load a list of words. There are many word lists available for download in the public domain or with permissive licenses. Just google. I am working on a word game that uses a dictionary and I use the union of two word lists included in the Moby project, "113,809 official crosswords" and "4,160 official crosswords delta". If you read the documentation of the Moby project you will see that the union of these two files is pretty much what you want.

Share this post


Link to post
Share on other sites
A long time ago I made a small game that just used a long txt file full of words. To 'optimize' I just split them up by starting letter.

I wouldn't use a player's spell check dictionary. On an older PC I accidentally added a bunch of words like 'shoudl' from mis-clicking, making it completely useless for your purposes. It would break your game.

I forget where I got my list, but you can make your own by pasting the output of lots of word game sites into a long txt file, and then writing a simple program to take out any duplicates, or words longer than your game allow. http://www.listofwords.org/ or http://www.manythings.org/vocabulary/lists/l/ (bottom of page has lists by letter!)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!