The basics

What is natural language processing (NLP)?

In short

Natural language processing (NLP) is the field of AI that helps computers understand, interpret and produce human language, in text and speech. Translation, spam filters, chatbots and large language models all come from NLP.

Human language is full of ambiguity, slang and context. For decades NLP used grammar rules and small statistical models for single tasks. Large language models have since taken over most of the field, handling many language tasks with one model.

Mini course

3 short lessons, about 2 minutes in total

  1. Making sense of words
  2. From rules to language models
  3. Everyday business uses

Lesson 1

Making sense of words

Computers are good with numbers and exact rules. Language is neither. The same word means different things, sentences can be read two ways, and people write with typos and slang. NLP is the work of bridging that gap: breaking text into pieces, figuring out meaning and producing text that sounds natural.

Human language
NLP
Sort and answer
NLP turns everyday text and speech into something a computer can work with, and today large language models do most of that work

Tap a box to open that concept

It includes speech too, through speech recognition and synthesis.

Lesson 2

From rules to language models

Early NLP used hand-written grammar rules. Then came statistical methods that learned from text, which gave us good spam filters and machine translation. Around 2018, transformer-based language models changed everything: one large model could do translation, summarizing, classification and question answering.

Today, most new NLP work starts with a large language model.

Lesson 3

Everyday business uses

Routing incoming emails to the right team, finding the main complaints across thousands of reviews, searching contracts for a clause, translating product texts, writing meeting notes from a recording. Each used to need a separate project. Now many can be done with a well-written prompt and a few test examples.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useNatural language processing (NLP)ChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Natural language processing (NLP) sits in a company's AI setup

The hard part has moved from the technology to choosing the right tasks and checking the results.

An everyday example

Your email's spam filter, the auto-complete on your phone and Google Translate are all everyday NLP.

How companies use it

Companies use NLP to sort and route emails, analyze customer reviews, search documents, translate, transcribe calls and power chatbots.

Frequently asked questions

Is NLP the same as an LLM?

NLP is not the same as an LLM. NLP is the whole field, and LLMs are the most powerful tool within it today.

Does NLP work well in Swedish?

NLP works well in Swedish: modern language models handle Swedish well, though very specialized terms should be tested.

Is older NLP still used?

Older NLP methods are still used for simple, cheap, high-volume tasks like keyword matching and basic sorting, where they remain efficient.

In depth: Natural language processing

The full picture, about 4 minutes of reading

Teaching computers our language

Computers are good with numbers, codes and fixed fields. Human language is the opposite: words mean different things in different settings, the same idea can be said in a hundred ways, and much of what we mean is left unsaid. "Can you send it again?" only makes sense if you know what "it" is. "Great, another delay" is not praise.

Natural language processing, usually shortened to NLP, is the field of computer science and AI that works on getting machines to handle human language, both written text and speech. It covers understanding language, such as working out what a customer wants from an email, and producing it, such as writing a reply. Machine translation, spam filters, voice assistants, search engines and today's chatbots all come out of NLP.

From grammar rules to statistics

The first attempts, decades ago, tried to write down the rules of language by hand. Linguists and programmers built grammars and dictionaries so that a computer could break a sentence into parts and look up meanings. This worked in narrow settings, but language has too many exceptions, and the rules never covered real text well.

The next step was statistics. Instead of rules, programs counted patterns in large amounts of text. If certain words often appear in spam, an email full of them is probably spam. If a phrase in one language is often paired with a phrase in another, that pairing is probably a translation. These methods powered spam filters, early search engines and the first useful machine translation. Each model was usually built for one task, such as sorting, tagging or translating, and trained on examples for that task alone.

How language models changed the field

The big shift came with neural networks, computer models loosely inspired by the brain, and in particular with the transformer design that most modern language models use. Trained on huge amounts of text, these models learned to predict the next word so well that they picked up grammar, facts, style and a working sense of meaning along the way.

The practical result is that one large language model can now do most of the tasks that used to need separate NLP systems. The same model can summarize, translate, classify, extract names and dates, answer questions and write new text, simply by being told what to do in a prompt. Tasks that used to require months of building and labeled data can now be tried in an afternoon. That is why many people now use "AI" and "language models" almost as synonyms for what used to be called NLP.

The everyday tasks NLP does

Several NLP tasks show up again and again in business. Classification puts text into categories, such as sorting incoming emails into orders, complaints and questions. Extraction pulls specific facts out of free text, such as order numbers, dates and amounts from emails or invoices. Sentiment analysis judges whether text is positive, negative or neutral, which is useful for reading large numbers of reviews.

Summarization turns long texts into short ones, from meeting notes to contracts. Translation moves text between languages. Semantic search finds documents by meaning rather than exact words, so a search for "cancel subscription" also finds a page titled "ending your membership". Speech recognition turns spoken words into text, and text-to-speech does the reverse. Chatbots and assistants combine several of these at once.

Where it still struggles

Even strong language models misread things. Irony, sarcasm and humor can trip them up. Very specialized terms, internal abbreviations and product codes may be unfamiliar, especially in a smaller language like Swedish, where models have seen less training text than in English. Dialects, mixed languages and poor spelling also lower accuracy, though modern models handle them much better than older systems did.

Language models can also produce fluent text that is wrong, because they generate likely-sounding words rather than checking facts. For tasks where accuracy matters, such as pulling amounts from invoices, results should be checked, at least by sampling. Older, simpler NLP methods, such as keyword rules, still have a place for cheap, high-volume tasks where predictability matters more than flexibility.

What it means for a small business

Much of a small business's daily work is language: emails, quotes, reviews, contracts, phone calls and notes. NLP, mostly delivered through language models today, is the set of tools that can take over the repetitive parts of that work.

Good first uses are tasks with lots of text and a clear right answer: sorting the shared inbox, pulling order details from emails into a system, summarizing customer reviews by theme, transcribing and summarizing calls, or searching old documents by meaning. Start with one such task, test it on real examples, including Swedish texts and your own terms, and check how often the result is right before letting it run on its own. Most of these tasks no longer need a custom model, only a good prompt and a clear routine for checking.

Curious what this could mean for your company? Book a call.

Book a call