# Language Model

> A model that guesses which word comes next. Repeat it and it writes.

**Field:** Artificial Intelligence  
**Category:** NLP & Language  
**Also known as:** LM, Statistical Language Model

## Think of it like

Think of it like a friend who can end your sentence. They have heard lots of them.

## Definition

A language model is a model that guesses how likely a piece of text is. In practice, it looks at some words and gives a chance for each word that could come next. Pick a likely word, add it, and guess again, and the model writes text. Phone keyboards use small ones to suggest the next word. Large language models are the same idea, trained on far more text.

## Example

Lucy types 'See you' on her phone. The keyboard suggests 'soon', 'later' and 'tomorrow', the three words its language model rates highest.

## Why it matters

Every chat assistant is built on a language model. Knowing it guesses the next word explains both its skill and its mistakes.

## Common mistake

Thinking it looks facts up. It picks likely words, so a wrong answer can sound just as sure as a right one.

## Three principles

- **Guesses the next word.** With a chance for each.
- **Writes by repeating.** One word, then the next.
- **Small or large.** Same idea, more text.

## Related terms

- [N-gram](https://learn.benibix.com/term/ai/n-gram)
- [Natural Language Processing (NLP)](https://learn.benibix.com/term/ai/natural-language-processing)
- [Probability Distribution](https://learn.benibix.com/term/general/probability-distribution)
- [Corpus](https://learn.benibix.com/term/ai/corpus)
- [Large Language Model (LLM)](https://learn.benibix.com/term/ai/large-language-model)
- [Perplexity (Metric)](https://learn.benibix.com/term/ai/perplexity-metric)
- [Masked Language Model](https://learn.benibix.com/term/ai/masked-language-model)

## Taught in

- [Predictive Text on Phones](https://learn.benibix.com/learn/ai-use-case/predictive-text-on-phones): AI Assistants and Chatbots, 12/13

![The words I drink, then a blank. Bars show the chance of each next word: tea is highest, then coffee, then water, then a small bar for all other words.](https://learn.benibix.com/diagrams/nlp-next-word.svg)

---

Source: https://learn.benibix.com/term/ai/language-model
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
