Language is hard for computers because meaning depends on context, tone and shared knowledge. Early NLP relied on hand-written rules and word counts. Machine learning, and then deep learning, replaced them with models that learn from huge amounts of text, which is why translation and voice recognition improved so sharply in the 2010s.
Marketers use NLP more often than they realise. Social listening tools use it to detect topics and sentiment in comments and mentions, search engines use it to understand what a query means rather than only which words it contains, and chatbots use it to work out what a customer is asking. Natural language generation is the part concerned with producing text.