What is natural language processing (NLP)?
Natural language processing (NLP) is the field of AI and linguistics that enables computers to read, understand, classify, summarise and generate human language.
It differs from a large language model in level: NLP is a field, while an LLM is one type of model used to carry out its tasks. The field did not start with LLMs; it developed over decades through rule-based and statistical methods.
- Topic
- Natural language processing and Turkish
- Also known as
- NLP
How natural language processing (NLP) works
- Raw text is normalised and split into tokens; in agglutinative languages such as Turkish, suffixes make this step harder.
- Tokens are turned into numeric vectors (embeddings) that carry meaning and context.
- Transformer models learn general language in pre-training and are adapted to tasks mostly through fine-tuning for encoder models and through prompting or fine-tuning for large language models.
- Typical tasks are text classification, named entity recognition, summarisation, machine translation and question answering, each measured with task-specific metrics.
In more detail
Historical development: from rules to large language models
The field of NLP traces back to the 1950s, notably Alan Turing's 1950 test, the 1954 Georgetown-IBM machine translation experiment and Chomsky's formal grammars, before shifting to statistical corpora in the 1990s and neural/Transformer architectures in the 2010s. Providing this timeline clarifies why many foundational pipelines, such as tokenisation, morphological analysis and BM25 lexical matching, still coexist with modern LLMs.
Tokeniser efficiency and context cost in Turkish
In Turkish NLP, 'tokeniser fertility', the average number of tokens needed per word, is a critical efficiency metric. Because English-dominated tokenisers split Turkish roots and agglutinative suffixes into many short fragments, a Turkish document can consume noticeably more tokens than its English equivalent, increasing latency and reducing effective context length.
Evaluation metrics by task
NLP tasks are evaluated very differently depending on their type: classification uses F1 and confusion matrices, NER uses exact span F1, retrieval uses nDCG or Recall@k and text generation uses semantic similarity, LLM-as-a-judge or human evaluation alongside classic n-gram metrics like BLEU and ROUGE. Using the wrong metric, such as BLEU for open-ended reasoning, gives misleading quality signals.
Commonly confused terms
| Term | How it differs |
|---|---|
| Computational linguistics | Computational linguistics studies human language formally and theoretically using computational models, whereas NLP focuses on engineering practical software systems to process, retrieve and generate language. |
| Natural language understanding and generation | Natural Language Understanding (NLU) is the comprehension-focused subfield of NLP (intent, entities, sentiment), while Natural Language Generation (NLG) focuses on producing coherent text from structured data or prompts. |
| Information retrieval | Information Retrieval (IR) ranks and fetches relevant documents for a query (lexical or semantic search), whereas NLP analyses and transforms language content within or across documents. |
Why natural language processing (NLP) matters for on-premises AI
Sensitive text such as contracts, petitions and customer correspondence stays inside when it is processed in-house. Not every task needs a large model: narrow, high-volume work such as entity recognition, classification or masking personal data can run on small models on a CPU or a single GPU with much lower latency. For Turkish text, models are chosen by measuring Turkish accuracy and how many tokens the same text needs.
A municipality classifies citizens' petitions by topic and urgency automatically; the text is processed on the municipality's own servers.
Common questions
Why is Turkish harder for NLP than English?
Turkish is agglutinative: suffixes on one root produce many word forms. With English-centric tokenisers the same content can need more tokens, which fills the context window faster.
Have large language models made classic NLP models obsolete?
No. For narrow, high-volume tasks such as classification, entity recognition or masking personal data, small models offer lower latency and hardware cost.
Related terms
- Text classification
- Tokenisation
- Named entity recognition
- Machine translation
- Text summarisation
- Large language model
- Agglutinative language
- Question answering
- Turkish large language model
- Morphological analysis
Sources
In the glossary: Glossary, M to Q