BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
AI

Natural language processing: What NLP is and does

Natural language processing (NLP) is the branch of AI that lets computers understand and write human language. How it works and how search engines use it.

Monthly searches · natural language processing
60.5k
Keyword research data
natural language processing
Natural language processing: What NLP is and does
Click the image to view it full size

Natural language processing (NLP) is the part of computer science and artificial intelligence that works with human language: reading it, making sense of it and producing it. Any time software deals with ordinary text or speech instead of fixed commands, NLP is at work.

You use it all day. Search engines interpret your query, email filters spot spam, phones turn speech into text, translation apps switch languages, autocomplete guesses your next word, and chat assistants write whole answers.

NLP is often split into two halves. Natural language understanding turns text into meaning: what is this sentence about, who is mentioned, is it positive or negative? Natural language generation goes the other way and turns meaning into text, such as a summary, a translation or a reply.

What NLP systems actually do

Most NLP work breaks down into a handful of tasks. Real products chain several of them.

Task What it does Example
Tokenization Splits text into words or word pieces "Don't stop" can become "Do", "n't", "stop"
Syntax analysis Finds parts of speech and how words relate Tells that "book" is a verb in "book a flight"
Named entity recognition Finds names of people, places, products, organizations Spots "Paris" as a city, "Paris Hilton" as a person
Sentiment analysis Judges whether text is positive, negative or neutral Sorts product reviews by mood
Classification Assigns a category Labels an email as spam, a page as "travel"
Translation Converts text between languages German product page into English
Summarization Shortens text while keeping the main points A paragraph from a long report
Question answering and generation Writes text in response to a prompt A chatbot answering a support question

Named entities are the link to SEO: search engines connect the entities they find in pages to what they know about those things, which is the idea behind entity optimization and the Knowledge Graph.

How NLP works

Computers don't read words; they work with numbers. So every NLP system first turns text into numbers, and the history of the field is mostly a history of doing that better.

Rules. Early systems used hand-written grammar rules and dictionaries. They worked in narrow cases and broke on anything unexpected.

Statistics. Later systems counted. They learned from large collections of text which words tend to appear together, and scored documents with measures like TF-IDF. Search software such as OpenSearch still scores matches with a counting method called BM25.

Neural networks and embeddings. Modern systems learn to represent each word, sentence or document as a list of numbers, an embedding, so that similar meanings sit close together. That lets software see that "cheap flights" and "low-cost airfare" mean nearly the same thing even though they share no words.

Transformers and language models. In 2017, Google researchers proposed the Transformer, a network that looks at every word in relation to every other word in the text (Attention Is All You Need). Trained on huge amounts of text, Transformers became today's large language models, which can both understand and generate language. They are now the main way NLP is done, and they power generative AI tools.

How search engines use NLP

Search is one of the biggest NLP applications: a search engine has to work out what a few typed words mean and which pages answer them. Google names several language systems in its guide to ranking systems:

  • RankBrain relates words to concepts, so a page can rank for a search even if it doesn't contain every word of the query.
  • Neural matching matches the concepts in a query to the concepts in a page.
  • BERT understands how combinations of words express meaning and intent. When Google added it to ranking in October 2019, it said BERT would help with one in 10 English searches in the US.
  • MUM can understand and generate language, but Google says it isn't used for general ranking, only for specific tasks.

BERT's best-known example shows why small words matter. For the search "2019 brazil traveler to usa need a visa", older systems returned pages about Americans traveling to Brazil. BERT understood that "to" made it a Brazilian traveling to the US.

What NLP means for your content

Because search engines understand language this well, the old tricks work less and plain good writing works more.

  • Write the way your readers talk. Use the words they search with, and explain things in full sentences. Google says its language matching understands a page's relation to many queries, even without the exact terms.
  • Cover the topic, not a keyword list. Answer the questions behind the search. Repeating a phrase doesn't help and counts as keyword stuffing.
  • Be specific and clear. Name things precisely, so it's obvious which product, place or person you mean. Ambiguous writing is ambiguous for machines too.
  • Mind the small words. "Flights to London" and "flights from London" are different searches; make your page clearly about one of them.

Be careful with "NLP SEO" tools that score your text for sentiment, salience or "NLP keywords". Cloud services such as Google Cloud's Natural Language API do offer sentiment, entity and classification analysis. But they are separate products. Google's own guide to its ranking systems names language systems such as BERT and RankBrain; the API's scores aren't among them. Treat them as a way to see how a machine might read your text, not as a ranking target.

SEO wiki

Related terms

More definitions from the same corner of SEO and digital marketing.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.