Skip to main content

Spell Checking algorithms

Posted by daniel on September 23, 2004 at 9:19 AM PDT

What word did you mean to use?

Remember when spell checkers first started appearing in consumer
applications. We all had a lot of fun with the wacky suggestions that
we would get. You would leave out the space in "a business" and the
suggestion would come up "Did you mean 'abysmal'."

How would you implement a spell checker? How would you create
lists of words that the author may have meant to use? In href="">Can't
beat Jazzy, Tom White discusses two types of algorithms: phonetic
based and string similarity based. He describes how the Aspell
algorithm takes combines the two techniques to one that is used in

These algorithms are based around western alphabets and, in the
cases given in the article, on English pronunciations. Never-the-less,
it's really interesting to see how you might tag words as candidates
for sounding alike. The second method of string similarity is based on
how many changes you have to make to turn one word into another. This
provides another measure of distance. Combining the two techniques and
tuning allows you to locate more likely replacement words.

Also in
Also in Java Today
, Leon Messerschmidt's JavaWorld href="">
article on Coefficient describes "an extensible Java platform
for online collaboration software [that] can be run either in an
EJB (Enterprise JavaBeans) server or as a standalone servlet."
After describing how to get started with Coefficient, the author
shows you how to add a custom wiki module. More useful modules
will need to be tied to a database. Coefficient handles the
database communication through Hibernate. Coefficient is targetted
at those who want to roll your own collaboration tools within a

Jack Shirazi writes that he has been a Java developer "for 9
years, and written dozens of personal Java apps. And enjoy it all
the time." In today's href="">Weblogs, Jack reports
on Java and
and reports on a discussion with a guy who says that
he only writes in Java "to pay the bills. Never under any
circumstances have I written a personal application in Java. I
feel I fall into the category of one who thinks Java is woefully
uncool, and knows intimately why."

Joshua Marinacci continues his exploration of tiny applications in
New MiniApp:Storm
. He reports "While playing around some more with this
miniapp idea, I came across geographer Tyler Mitchell's weblog post
about hurricane tracking using Web Map Service urls. I thought this
would make an interesting MiniApp and give me a good opportunity to
play with a few webservices. Starting from his base (and with some
greatly appreciated clarification emails from Tyler), I've created
StormDrain, a simple program that loads WMS data and displays it

In Projects and
, the href="">JavaPedia page
has recently been refactored. Add your production quality Java
application. Sub-sections include desktop, internet, multimedia,
development, and GUI apps.

The Java
community project href="">OpenIM is developing "a fast,
simple, and highly efficient instant messager server" using the Jabber
protocol. It works with multiple Jabber clients, including GAIM.

The discussion of href="">
Hackers and Painters returns in today's

. John Mitchell asks "How much does taste
really matter in the software industry? Do you evaluate your
code in terms of taste (or "smell" or "style")? [..] Graham
ended with: "The recipe for great work is: very exacting
taste, plus the ability to gratify it." Is there any great
work being done in software?"

Yishai adds to the discussion on forking and releasing the TCK
saying "What you can do is put a 'You cannot use the Java brand or
name in your marketing without express permission from Sun' and then
tie the permission to passing the TCK and whatever other non-free
conditions Sun would like. So you could fork it, but you couldn't call
it Java, or claim that it runs like Java which would immediately give
it a marketing problem.

In today's
News Headlines

Registered users can submit news items for the href=""> News Page
using our news
submission form
. All submissions go through an editorial
review before being posted to the site. You can also subscribe to
the href="">
News RSS feed.

Current and upcoming
Java Events

  • September 23, 2004 href="">Chat with
    Sun's Chief Web Services Strategist
  • September 23, 2004 href="">Compuware OJX
  • September 24-26, 2004 href="">Michigan Java
    Software Symposium
  • September 29-October 1, 2004 href="">OSCOM

Registered users can submit event listings for the href=""> Events Page using our href=""> events submission
form. All submissions go through an editorial review before being
posted to the site.

Archives and Subscriptions: This blog is delivered
weekdays as the
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.