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
Data Science

Semantic analysis: How machines read for meaning

Semantic analysis works out what a text means, not just which words it uses. Search engines rely on it, and you can use it to sort keywords and feedback.

Monthly searches · semantic analysis
5.4k
Keyword research data
semantic analysis
Semantic analysis: How machines read for meaning
Click the image to view it full size

Semantic analysis is the part of language processing that works out meaning: which sense of a word is meant, who or what a text is about, how the things it mentions relate, and what a sentence says as a whole. Counting and matching words tells you what a text contains. Semantic analysis tells you what it's saying.

Take "jaguar top speed". The words alone could be about the animal or the car. Semantic analysis uses the context, here "top speed" and what people usually mean by that search, to pick a sense. It's a core part of natural language processing (NLP), and search engines lean on it heavily.

What semantic analysis does

It usually runs on top of earlier steps that split text into words and work out its grammar. On that base, it handles jobs like these, each a standard NLP task:

  • Word sense disambiguation: picking the right meaning of a word with several, like "bank" in "river bank" vs. "bank loan".
  • Named entity recognition and linking: finding the people, places, organizations and products a text mentions, and tying each one to a specific real-world thing. That's how "Paris" gets linked to the city in France rather than a person called Paris.
  • Relation extraction: spotting how entities connect, like "Marie Curie was born in Warsaw".
  • Semantic role labeling: working out who did what to whom. "The dog bit the man" and "the man bit the dog" use the same words with opposite meanings.
  • Semantic similarity: judging whether two texts mean the same thing in different words, like "cheap flights" and "low-cost airfare".

Semantic, syntactic and sentiment analysis

These three get mixed up because they often run together:

Analysis Question it answers Example output
Syntactic How is the sentence built? "dog" is the subject, "bit" is the verb
Semantic What does it mean? The text is about a dog attack; "dog" is the attacker
Sentiment How does the writer feel? Negative

A product review needs both semantic and sentiment analysis. "The battery dies by lunch" is negative, and it's about battery life. You need the second part before you can do anything about the first.

How it's done

Early systems used hand-built rules and dictionaries of word senses and synonyms. Statistical methods followed, such as latent semantic analysis, which finds words that tend to appear in the same documents. Most systems today use language models that turn words and passages into number vectors, called embeddings, so texts with similar meaning sit close together. BERT is a well-known example, and the same idea powers semantic search.

How search engines use it

Google describes several language systems in Search (Google):

  • RankBrain, launched in 2015, relates the words in a search to real-world concepts.
  • Neural matching, added in 2018, matches the concepts in a query to the concepts on a page, not just the keywords.
  • BERT, launched in 2019, reads how words in a sequence relate. Google's example: in "can you get medicine for someone pharmacy", the word "for" changes what the searcher wants. At launch, Google said BERT helped it understand one in 10 English searches in the US.

For your pages, the practical upshot is in Google's own SEO starter guide: you don't need to use every variation of a search term, because Google's language systems can connect your page to queries that use other words. Repeating terms to force a match is keyword stuffing, which goes against Google's spam policies.

So write for the person searching. Name the specific things you're talking about, answer the question the search implies, and use the words your readers use.

Using semantic analysis yourself

You don't need to build a language model to put semantic analysis to work:

  • Group keywords by meaning. Keywords that mean the same thing, like "running shoes for flat feet" and "flat feet running shoes", usually belong on one page. Keyword clustering does this grouping by meaning instead of shared words, using cluster analysis on the keywords' embeddings or search results.
  • Read the intent behind a search. Sorting queries into informational, commercial and transactional is a semantic judgment about search intent.
  • Sort feedback at scale. Tagging reviews, support tickets or survey answers by topic shows what people talk about. Add sentiment to see how they feel about each topic.

A different meaning in programming

In compilers, semantic analysis is the phase after parsing that checks whether code makes sense: whether variables are declared, whether types match, whether a function gets the right arguments. If you came here from a programming course, that's the sense you want. It shares the name, and the focus on meaning, but not the methods.

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.