(Apologies for the title. Stack overflow doesn't allow the word "Question" in titles.)
How would one go about writing an algorithm to convert an english statement into a question? Where would one even begin? For example:
"The ingredients for an omelette are eggs, bacon, cheese, and onions" would become "What are the ingredients for an omelette?" or "The ingredients for an omelette are what?"
I can imagine parsing a sentence into it's components, and then re-arranging these while adding and removing words to form a grammatically correct sentence, but I'd have no idea where to start. I know this is by no means a trivial task, and I think the most helpful thing right now would be pointers to literature or similar problems.