Solved

sentence validation

Posted on 2004-03-29
3
866 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
ID: 10703908
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Arrays.asList  VS  ArrayList 4 71
reverse digits of a number using for loop 5 52
eclipse console opening separately 2 29
Setup GlassFish 4 21
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

840 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