• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create a Spell Checker utility using Java  RSS feed

 
Anindita M. Majumdar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am to create a spell checker utility, as a case study. The question says I am allowed to use a computerized dictionary as source of works and then design and implement a spell-checker applet in Java.The program should ask the user to enter a word.The program then look for the word in the array if spelled correctly it print "Word is spelled correctly" elese otherwise.The program then try to look for a word close to this word and then ask the user if he means that.
It also replaces each double letter with a single letter and other test to improve the value of the checker.

Plz suggest how to import a computerized dictionary as source of works.Then what should be the flow like?

Thanks in advance
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check Jazzy: The Java Open Source Spell Checker
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to find "close" words is an interesting problem. I used the "Metaphone" phonetic coding algorithm in a program for a client. The Apache Software Foundation - Commons project has an implementation of Metaphone and other phonetic coding tools.
Bill
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See also one of my favorites: the Ternary Search Tree. The sample applet with that article spell checks as you type each letter. It can be used for an auto-complete kinda thing. I don't recall if he has anything for finding "close" words, but the matching stuff is lightning fast. The applet sure isn't ... it's worth the long wait to run it tho.
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a link to some plain text word lists if you dont already have one.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!