This is a bit different sort of question coming from a computer science student, working on a Natural Language Processing project.
As a part of our project we got stuck into a situation where we want to know: how are the essential components in a sentence arranged?
We know that every sentence contains a main verb (V) and then the structure goes on from noun(N) followed by verb(V) to some more complex forms, following some patterns of N, V, Adverb(AV), Adjective(AJ), Determiners(D), Preposition(P), etc.
Apple is red in color is not a correct English sentence. The correct English is "An apple is red in color." So can we infer that N V AJ P N is wrong English and the correct English sentence follows this template D N V AJ P N?
In the same way clauses and phrases also follow some unique patterns of N, V, AV, AJ, A, etc.
Can someone tell me how the pattern is followed? Is there any rule that it follows from which we can infer whether a given sentence is valid or not?
To qualify my previous statement, I want to know whether a given group of words is a valid English sentence or not by recognizing the pattern and combination of N, V, AV, AJ, A, etc.
My goal is to recognize simple sentences; I am not working with complex sentence forms.
Can anyone help me with this?