Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Spell checking with Java

Thread view: 
Helmut Juskewycz - 31 Jan 2007 16:51 GMT
I am looking for a module which allows spell checking. Since the
project is in Java, it would be good if the spell checking is also in
Java. I googled and found J(A)spell and Jazzy, but I don't have any
experience with those projects, and I am not sure how their quality
is. Another possibility is to access Aspell over JNI.
It is important that the project supports many different languages,
and like always the performance issue.

I appreciate every help/tips I get!
Chris Uppal - 02 Feb 2007 14:06 GMT
> I am looking for a module which allows spell checking. Since the
> project is in Java, it would be good if the spell checking is also in
[quoted text clipped - 3 lines]
> It is important that the project supports many different languages,
> and like always the performance issue.

Two other possibilities.

One is to execute some handy standalone spellchecker program like Aspell (or
whatever) as an external process reading from stdin and writing to stdout.
That architecture works a lot better than you'd imagine -- especially if you
can avoid Cygwin-based ports of Unix-y programs to Windows (native ports are
fine, it's just that Cygwin add a lot to the startup time).  Even if you don't
stick with that forever, it should take no more than a few minutes to hack
together a first cut at a package using that approach, which would allow you to
focus on more pressing matters (I'm sure you have many such ;-)

A more complex approach, but not difficult at all if you a re comfortable with
JNI, would be to use it to connect Java and the Hunspell library.
   http://hunspell.sourceforge.net/
The specific advantage of Hunspell is that it's used in OpenOffice, so their
language files are widely available.  I have done this myself (not in Java, but
the idea's the same) and there were no great difficulties except (as ever) for
the lack of documentation.  In fact the only real source of confusion is that
there are a buch of undocumented/underdocumented functions in the library for
morphological analysis -- the thing to do is just to ignore them.

   -- chris
Helmut Juskewycz - 03 Feb 2007 03:33 GMT
thank you,
I think I will stick to the Hunspell approach and hope that it is
really not too much difficult :)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.