How can I determine if an input sentence is consistent with a certain subject?
If you have lots of training data, ANN's (deep learning) could quite possibly get you there.  But I have a hunch you might also get some mileage out of using something like a rule induction approach.  Maybe something like CN2. I'd suggest at least reading up on those and see if you can see a way to apply that to your system.