artificial intelligence is a sub-discipline of computer science. ai tries to allow computers to mimic human intelligence in order to solve complex problems and make decisions at scale. natural language generation (nlg) is a part of ai.