• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Create a Spell Checker utility using Java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check Jazzy: The Java Open Source Spell Checker
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is a link to some plain text word lists if you dont already have one.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic