hello,
I am trying to create a computer program that can interpret english sentances, but I'm struggling with the syntax of an english sentance (which I need to work out first before I can write instructions for the computer). I realize that a real life person wouldn't ever want to use every part of this syntax all at once... but this is for interpreting sentances, not creating them. I'm trying to keep the possibility for it to understand commonly used (yet incorrect) grammar as well.
I've gotten this far:
[adverb] (article [adjective] noun || [adjective] pronoun) verb [ [, verb...] conjunction verb...] [preposition] [(article [adjective] noun || [adjective] pronoun)] [, conjunction <repeat entire sequence once but this time you can leave out the subject; the first noun/pronoun>]
format:
- [brackets] contain parts_of_speech (POS) which are optional. if two parts of speech are contained withing a single pair of brackets (ex. [conjunction verb] it means that you either have both or neither.)
- (text1 || text2) indicates that either text1 or text2 may be used but not both
- 3 dots... indicates that the sequence contained in brackets may repeat (ex. [conjunction verb...] could be conjunction verb conjunction verb; ran and jumped
- <text> inside greater than and less than symbols is descriptive text and doesn't represent a single POS
I know this looks a little hard to follow but it really isn't that bad... please help I'd really appreciate it
Thanks so much,
Jim