Medieval Logic and Natural Language Understanding