Checking user input

Hello! I have an issue For example User: Mary lives near London Bot: Where does Mary live? User: near London Bot: right or wrong . How to create chat bot in such way.I can’t write stories to each of such example.Also i will use slots for names and locations. But main thing hear how bot knows that users answered in right way?