LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2002, 08:29 AM   #1
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
Question Developing a Spelling & Grammar Checker


I was wondering how I could develop a spelling and grammar checker.

Eg. what programing language would be most suitable for this, how does a grammar checker actually work properly (I've noticed sometimes it does), would I need have a HUGE list of words from a dictionary or is there an easier way, etc.

Thanks in advance
 
Old 05-08-2002, 09:43 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I don't know about a grammer checker. But for a spelling checker I would look for either ispell or aspell at http://freshmeat.net
 
Old 05-09-2002, 03:35 PM   #3
Sfin
Member
 
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197

Rep: Reputation: 30
Well for a spell checker I think that you will need a database that conatins all the words you want, and have a facility to allow users to add words into this dictionary.

Then as the user types in words they are compared with words in the dictonary, and if there is a match then the work is correct, otherwise it will be a spelling mistake. Then it will prompt the user to correct it.

Also for a little more advanced functionality; assuming the word isn't in the dictionary, you can have the program compare the work with other words in the dictonary and have it list those words in the dictionary that most resemble the word that is wrong. That way you can give the user some suggestions to correct the word.

Then you can also add some automatic corrections, ex. a lot of people sometimes right "teh" instead of "the" so have the program automatically change it.

There are a lot of stuff you can do, but I think that this is the basic framework of a spell checker.

About the grammer thing I have no idea. Maybe have a list of nouns, verbs and so on each in a different dictionary, then make sure that they come in a specific order to make a correct sentence or so on. So you would check from a starting "." to an edning "." and that makes one sentence; so the program checks between those that there is a verb, noun, and so on in a specifc order to make a correct word.
 
Old 05-26-2002, 05:23 PM   #4
djjones
LQ Newbie
 
Registered: May 2002
Posts: 1

Rep: Reputation: 0
Question Did you manage to do it?

I'm curious if you were able to build the Java Grammar checker. Please let me know.

David Jones, djjones@ariasolutions.com
 
Old 05-26-2002, 06:17 PM   #5
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
Grammar checker, take an English (or whatever language you wanna use) class and listen attentivly to what is being said. Pay close attention to sentance diagrams; as you take in the information, think about how you could relate what is being said to a computer (via a HLL, hopefully ). I would choose perl if you just wanna run through a document and present output. Otherwise I'd use C++ and the STL. This would be my approach, at least. Hope that helps some .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
english spelling/grammar kpachopoulos General 4 11-14-2005 06:18 PM
Thunderbird spelling checker zeky Linux - Software 1 10-22-2005 08:46 AM
Help with grammar Mr. New General 3 06-09-2005 06:16 AM
Grammar Check neranjana Linux - Software 14 08-30-2004 03:53 PM
Search for grammar checker for linux valar Linux - Software 1 09-06-2003 12:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration