Skip to content

Natural language processing

Written by GPT-6 Luna from the web 51 of 59 sentences cited

An AI wrote this article, and it can be wrong.

Natural language processing (NLP) is a field of computing concerned with analyzing, interpreting, and generating human language. It brings together computer science, linguistics, statistics, and artificial intelligence to build systems that work with written text, speech, or both.1 NLP matters because language is a common way people communicate information and give computers instructions, but its meaning often depends on context, convention, and knowledge that are difficult to represent computationally.2

NLP includes tasks such as machine translation, speech recognition, text classification, information retrieval, question answering, and text generation.2 Its methods have changed over time, from hand-written rules to statistical learning and neural networks, with systems increasingly trained on large collections of language data.1 Modern systems can perform many language tasks, but success on a particular task does not by itself show that a system understands language in the same way a person does.3

Scope and tasks

NLP is sometimes used interchangeably with computational linguistics, though the terms can emphasize different aims: NLP often refers to building and evaluating systems, while computational linguistics can also refer to using computational methods to study language.2 In practice, their research and applications overlap, and both draw on linguistic descriptions as well as statistical and computational techniques.2

Many NLP systems break a broad task into smaller operations. A text system, for example, may divide an input into tokens, identify grammatical categories or named entities, and then classify, retrieve, or generate information based on the result.4 Such operations can be used separately or combined: identifying names and locations can support information extraction, while parsing sentence structure can contribute to translation or question answering.4

The field covers both understanding-oriented tasks and generation. In text classification, a system assigns an input to categories, as in sentiment analysis; in machine translation, it produces text in another language; and in speech recognition, it converts spoken language into text.4 The boundaries between tasks have become less distinct as general-purpose models are adapted to perform multiple functions, including summarization, translation, and question answering.3

Early development

NLP research grew alongside early artificial intelligence, with machine translation a prominent initial goal.1 In January 1954, a public Georgetown–IBM demonstration translated selected Russian sentences into English using a computer program and a restricted vocabulary and grammar.5 The demonstration attracted attention, but its narrowly defined material did not establish that computers could translate unrestricted language reliably.5

Early researchers often wrote rules by hand, encoding grammatical patterns and other linguistic knowledge directly into programs.1 Later systems explored more elaborate language interpretation in limited settings, including programs designed to answer questions about constrained domains or interact through text.1 These systems showed how explicitly represented rules and domain knowledge could support language tasks, while also illustrating the difficulty of scaling hand-built knowledge to varied, everyday language.6

A major reassessment of machine translation came with the 1966 report Language and Machines, prepared by the Automatic Language Processing Advisory Committee of the U.S. National Research Council.7 The report examined translation needs, the quality and cost of machine-produced translations, and the state of computational linguistics.7 Its negative assessment of then-current translation performance was followed by reduced U.S. funding for machine-translation research, although the scale of the report’s influence on that decline has been debated.8

Statistical and neural methods

From the late twentieth century, researchers increasingly used statistical methods to learn patterns from collections of text rather than relying solely on manually specified rules.6 Statistical systems estimate how likely linguistic patterns are from examples, which can help them handle variation not covered by a fixed list of rules.9 The approach also depends on suitable data: a system trained on one kind of writing may perform poorly on another, such as specialized clinical text.9

Neural networks became increasingly influential as computing resources and training data expanded.10 These methods learn internal representations of language from examples, rather than requiring every relevant feature to be specified by human designers.10 In 2017, researchers introduced the Transformer, an architecture that relies on attention mechanisms rather than recurrent connections to process sequences.11

The Transformer helped shape subsequent language models. In 2019, the authors of BERT reported that a model pretrained on unlabeled text could be adapted to a range of NLP tasks, including question answering and language inference.12 This approach—training a model broadly and then adapting it to particular tasks—contributed to a shift toward general-purpose pretrained models.12 Large language models are one prominent part of this development, but NLP also encompasses systems and research that do not use such models.3

Uses

NLP is used to search and organize text, identify information within documents, and classify content.2 Search engines and document-retrieval systems can use language-processing methods to connect a query with relevant material; text classification can sort messages or documents according to labels or topics.2 Named-entity recognition and related information-extraction tasks can identify items such as people, organizations, or places in text.4

Other applications work directly with spoken language or generate new text. Speech-recognition systems transcribe spoken input, and translation systems produce text in a different language.4 Text-generation systems can be applied to summarization, dialogue, and question answering, among other tasks.3 In deployed products, language-processing components may be combined with search, databases, or other software rather than operating alone.2

The usefulness of an application depends on its setting and the costs of error. A classifier that performs adequately on one collection of documents may not transfer to another domain, because vocabulary and usage patterns vary.9 For that reason, evaluating a system on the material and conditions in which it is intended to operate is important, especially when its output informs consequential decisions.13

Evaluation and limitations

Researchers commonly evaluate NLP systems using datasets with examples and expected answers, then calculate measures such as accuracy or task-specific scores.14 These benchmarks make it possible to compare systems under shared conditions, but performance on a test set is only evidence about that evaluation—not a complete measure of capability across all uses.15 Test examples can also contain superficial patterns that a model exploits without demonstrating robust handling of the intended linguistic phenomenon.15

Benchmark contamination is another concern: if test examples or their answers appear in a model’s training data, evaluation scores may overstate how well the model generalizes to new material.14 Researchers have therefore called for contamination checks and more careful benchmark design.16 These issues are particularly relevant to models trained on very large corpora, for which it can be difficult to establish exactly what material was included.17

Language coverage and social bias are continuing challenges. A 2025 review of multilingual language models found that research and mitigation efforts often concentrate on selected languages, while evaluations across languages and cultures remain uneven.18 Another study found that tested language models could treat non-standard English dialects differently from standard varieties, with native-speaker evaluators reporting more stereotyping and other problems in responses to non-standard varieties.19 Such findings highlight that a system’s language performance can vary across communities and contexts, and that training data and evaluation choices affect what its apparent strengths and weaknesses reveal.18

Current research

NLP remains an active research field, spanning applied systems, foundational questions about language processing, and work on the reliability and effects of language technologies.3 Current research includes evaluation beyond English, where benchmarks must account for differences among languages and cultures rather than assume that translated test material is equivalent to locally grounded examples.20 Research published in 2026 also surveys methods for mitigating toxic outputs in multilingual language models and identifies data scarcity, inconsistent evaluation, and cultural nuance as ongoing problems.21

The field’s development has not eliminated the longstanding difficulty of relating linguistic form to meaning and context. Systems can be effective on particular tasks while remaining vulnerable to changes in domain, language variety, or evaluation conditions.9 As a result, NLP research continues to address not only how to build more capable models, but also how to test their capabilities, understand their failures, and make their performance more representative across users and languages.22

References

22 sources
  1. aclanthology.org/2024.tdle-1.2.pdfaclanthology.org· cited 5×

  2. aclanthology.org/O96-2004.pdfaclanthology.org· cited 2×

  3. LANGUAGE AND MACHINESmt-archive.net· cited 2×

  4. pmc.ncbi.nlm.nih.gov/articles/PMC3168328pmc.ncbi.nlm.nih.gov· cited 4×

  5. 7181 attention is all you needproceedings.neurips.cc