Natural language processing (NLP) and natural language generation (NLG) are both related to artificial intelligence (AI) and are used to enable computers to understand and communicate with humans: .
Natural language processing (NLP) A computer program's ability to understand human language, both spoken and written. NLP is a component of AI that helps machines understand speech and text, and formulate relevant responses. NLP can be used to extract numerical data from text, and is used in search engines, websites, and cell phones.
Natural Language Processing (NLP), Natural Language Understanding (NLU), and Natural Language Generation (NLG) all fall under the umbrella of artificial intelligence (AI).
Natural language generation (NLG) A machine's ability to generate text that appears to be written by a human. NLG is a subset of NLP that uses data from NLP to create text or speech responses. NLG can be used to generate reader-friendly summaries of numerical data.
As with NLU, NLG applications need to consider language rules based on morphology, lexicons, syntax and semantics to make choices on how to phrase responses appropriately.