Lesson 22 of 28 · Using AI well
What is natural language processing (NLP)?
Natural language processing (NLP) is the branch of AI that lets computers work with human language: reading, interpreting, translating, summarising and writing text, and, combined with speech technology, spoken words too. It powers spam filters, search, autocorrect, translation apps, voice assistants and chatbots. Large language models are today's best-known NLP technology, but NLP is the wider field they come from.
What NLP covers
"Natural language" means the languages people speak and write, such as English or Chinese, as opposed to programming languages built for machines. Human language is messy: one word can mean different things (the bank of a river or a bank account), sentences can be ambiguous, and meaning depends on context and tone. NLP is the work of getting computers to cope with that mess.
Typical NLP tasks include:
- Classifying text: spam or not, positive or negative review, which team a support ticket belongs to.
- Extracting information: pulling names, dates, amounts or addresses out of documents.
- Translating between languages.
- Summarising long text and answering questions about it.
- Generating text: replies, drafts and explanations.
From grammar rules to language models
Early NLP relied on hand-written rules and word lists, like a phrasebook that only works for sentences someone thought of in advance. From the 1990s, statistical methods learned by counting word patterns in large collections of text, which made translation and spam filtering much better.
Neural networks then learned to represent words as lists of numbers, called embeddings, so that words with similar meanings sit close together; word2vec (2013) made this popular. The transformer architecture, introduced in 2017, lets a model weigh every word against every other word in a passage, and pre-trained models such as BERT (2018) showed that one model could be adapted to many language tasks. Scaling this approach up produced today's large language models, which handle most NLP tasks from a plain-language instruction.
Where you meet it in real tools
NLP is built into much of the software you use every day:
- Email: spam filters, suggested replies and priority inboxes.
- Search engines that understand a question rather than just matching keywords.
- Phone keyboards that autocorrect and suggest the next word.
- Translation apps and live captions.
- Customer-support chatbots, meeting summaries and writing assistants.
What NLP is not, and its limits
Processing language is not the same as understanding it the way a person does. NLP systems can miss sarcasm, slang, cultural references and ambiguous instructions, and a fluent answer from a language model can still be factually wrong.
Quality also varies by language. Systems usually perform best in languages with lots of digital text to learn from, such as English, and less well in languages with little. Some languages are also split into more tokens (word pieces) per sentence, which can make the same request cost more on a token-billed API.
Example
Try it: three NLP tasks in one prompt
Try this promptHere are three customer reviews. For each one, give (1) the sentiment: positive, negative or mixed; (2) the product feature mentioned; (3) a one-sentence summary. Return the result as a table. Review 1: The battery lasts all day, but the charger stopped working after a week. Review 2: Setup took two minutes and the app is easy to use. Review 3: Customer service never replied to my refund request.
This single request combines classification (sentiment), information extraction (the feature mentioned) and summarisation, three classic NLP tasks that once needed three separate systems. Check whether the assistant labels Review 1 as mixed.
Key points
- NLP is the part of AI that lets computers read, interpret, translate and generate human language.
- It grew from hand-written rules to statistics to neural networks and today's large language models.
- Spam filters, search, autocorrect, translation and chatbots are all NLP in daily life.
- Fluent output is not proof of understanding; check facts and watch for misread tone.
- Quality and token cost can differ between languages.
Try it on Mindber
Related terms
Related topics
Frequently asked questions
What is the difference between NLP and an LLM?
NLP is the field; a large language model is one kind of tool within it. NLP covers every method for working with human language, including rule-based systems, small statistical classifiers and translation engines. An LLM is a large neural network trained on huge amounts of text that can perform many NLP tasks from a single instruction.
Is NLP the same as speech recognition?
Not quite. Speech recognition converts spoken audio into text, and speech synthesis turns text into a voice; both are usually counted as speech technology, a close neighbour of NLP. A voice assistant uses all three: speech recognition to hear you, NLP to work out what you mean and compose a reply, and speech synthesis to answer aloud.
Do I need to learn NLP to use AI tools?
No. Modern assistants hide the NLP behind a chat box, so you only need to describe what you want clearly. Learning the basic ideas, such as tokens, context and why models misread ambiguous requests, helps you write better prompts and judge the results. Coding skills matter only if you build your own language features.
Sources
- Efficient Estimation of Word Representations in Vector Space. Mikolov et al., arXiv, January 2013
- Attention Is All You Need. Vaswani et al., arXiv, June 2017
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Devlin et al., arXiv, October 2018
Last updated