I am trying to check if a given sentence is grammatical using NLTK.
Ex:
OK : The whale licks the sadness
NOT OK : The best I ever had
I know that I could do POS tagging, then use a CFG parser and check that way, but I have yet to find a CFG that uses POS tags instead of actual words as terminal branches.
Is there a CFG that anyone can recommend? I think that making my own is silly, because I am not a linguist and will probably leave out important structures.
Also, my application is such that the system would ideally reject many sentences and only approve sentences it is extremely sure of.
Thanks :D