well
for starters use broad answers for everything
put in clauses that check if the words who what when where why how etc
you can't make it perfect by any means but it could at least produce an answer that makes sense rather than just random yes or no