Natural language processing (NLP) refers to the automatic computational processing of human languages.
So an algorithm that has text written by a human as an input, or an algorithm that produces text which looks like it was written by a human, as an output would both be examples of NLP.