Solved

sentence validation

Posted on 2004-03-29
3
862 Views
Last Modified: 2011-10-03
i need a method that takes in a string, checks it of a lexicon, then returns whether the sentence is valid english or not.
0
Comment
Question by:jack88880
3 Comments
 
LVL 24

Accepted Solution

by:
sciuriware earned 40 total points
Comment Utility
That's very difficult, there a 4 levels:

1) checking the words against a dictionary or word list,
2) checking the remainder for legal derivates,
3) checking for the mandatory elements of a good sentence to be present or defined,
4) checking for the meaning of a sentence in the context of earlier sentences.

1 & 2 are done by a spelling checker.
3 is sometimes done by a grammar checker.
4 requires artificial intelligence of a high level.

If you pick a spell checker from the public domain, you'll see
how difficult even levels 1 & 2 are; let alone the rest .....

;JOOP!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now