I'm asking this as a programmer in grad school. We've been tasked with developing an agent that can process and understand sentences. While planning out my approach for this assignment, I found myself diagramming sentences and breaking them down the way I was taught in middle school.
I never had any good resources on sentence diagramming though--just quizzes from school and lessons in class. I've just googled some resources for sentence diagramming, but I'm only finding informal webpages that have diagrams for very simple sentences.
I was wondering if there's any textbooks, journals, any resource really that someone can point me to that'll help me figure out how to diagram more complicated sentences (lots of independent + dependent clauses, probably a lot of prepositions, reviewing adverbial vs adjectival prepositions when diagramming, etc). I'm not even sure where to start looking for resources about this either, so any sort of direction would be much appreciated.