I'm doing some testings on NLP and I was thinking to write a code that works like this.Subject -> User input -> OutputDog ownership -> I own a dog -> YesDog ownership -> My dog is called Joe -> YesDog ownership -> I don't have a dog -> NoWhich branch or ai algorithm do you think that would be the best approach for this problem?I'm not expecting someone to solve my problem, just to point me in the right direction. 
Which AI branch should I follow?
natural language;nlp;intelligent agent;learning algorithms;language processing