Skip to main content

What is natural language processing?

The AI Glossary

In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.

Natural language processing, or NLP, is the field concerned with getting computers to work with human language. It includes finding information in text, identifying what a message is about, translating between languages and generating a response. “Natural language” means languages used by people, rather than a programming language with tightly specified rules.

Consider the sentence “I need to move my appointment, not cancel my treatment.” A useful system has to identify the request, understand what is being changed and preserve the distinction between an appointment and a course of treatment. Recognizing the word “cancel” alone would be a poor basis for action.

NLP has used many approaches, including dictionaries, hand-written rules, statistical models and neural networks. A neural network is a model built from connected calculations whose numerical settings are adjusted during training. Large pretrained language models now support many NLP applications, but simpler methods remain useful when a task is narrow or requires exact matching.

People often distinguish natural language understanding, which concerns interpreting language, from natural language generation, which concerns producing it. The boundary is not absolute. Translation, question answering and summarization may require both. A fluent summary can still misunderstand the source; recognizing a request does not give the system permission to carry it out.

Language is difficult because meaning depends on context. “Positive” can describe a welcome experience or an unwelcome test result. “Her mother has diabetes” is not a statement that the patient has diabetes. Negation, time, uncertainty and who a statement refers to can all change what should be recorded.

In a clinical operations application, NLP might help identify referral letters that mention a missing investigation. The useful output is not simply a label. Staff may need the exact supporting passage, an indication of uncertainty and a route to correct the result. Measuring how well the system preserves those details is more informative than saying that it “understands medical language.”

Sources: Association for Computational Linguistics — What Is Computational Linguistics?; Devlin and colleagues — BERT (2019); Ji and colleagues — Survey of Hallucination in Natural Language Generation (2023)

To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.


AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.

For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.

Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy

Lead with AI in Health Care

The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy