A search engine that matched only the exact characters typed would be useless for most queries. Someone searching for cheap flights wants pages about a cheap flight, cheaper flights and low-cost airfares. The history of how engines learned to make those connections runs from a rule-based suffix stripper written in 1980 to the language models now used across search. Each stage changed what it meant to write a page that could be found.
Stemming: the first step beyond exact matching
Stemming reduces a word to a base form by removing its endings, so that connect, connected, connecting and connection are all indexed as one term.
The standard algorithm was published by Martin Porter in 1980 and is still maintained on his site. It works without a dictionary. A fixed sequence of rules strips or replaces suffixes, subject to conditions about what remains: -sses becomes -ss, -ies becomes -i, -ational becomes -ate, and so on through several passes.
The result is a stem, which need not be a real word. Porter’s algorithm reduces relational to relate but also turns ponies into poni. That does not matter, because the same transformation is applied to the query and to the documents, and only the match counts.
The approach has well-understood failure modes, described in Wikipedia’s article on stemming:
- Over-stemming merges words that should stay apart. Universal, university and universe share a stem under Porter’s rules and mean different things.
- Under-stemming fails to merge words that belong together. Irregular forms such as ran and run, or mice and mouse, are missed by suffix rules.
The alternative, lemmatisation, uses a vocabulary and grammatical analysis to map each word to its dictionary form. It is more accurate and more expensive. Porter later created Snowball, a small language for writing stemmers, partly because his original algorithm had been reimplemented with errors so often and partly to extend the method to languages other than English.
When Google adopted it
For its first years Google matched words literally. A search for diet and a search for diets returned different results, and SEOs built separate pages for singular and plural.
That changed in late 2003. Search Engine Roundtable reported on 4 December 2003 that Google had begun stemming, and that Google’s representative on the WebmasterWorld forum had said it had become more visible over the preceding month. A plus sign before a word turned it off for that term. The timing coincided with the Florida update, and the change is one of the few from that period that is documented.
Synonyms and query expansion
Stemming handles endings. It does nothing for car and automobile, or photo and picture. The next step was to expand queries with words of similar meaning.
The difficulty is that synonymy depends on context. Hot can mean spicy in a query about food and warm in a query about weather; expanding in the wrong direction makes results worse. Search engines learned these relationships statistically, from which words appear in similar contexts and from which results people chose for which queries, instead of from a fixed thesaurus.
For anyone writing pages, the consequence was that a page no longer had to contain the searcher’s exact word to rank for it.
Entities: “things, not strings”
In May 2012 Google announced the Knowledge Graph, a database of people, places and things and the relationships between them. Amit Singhal’s announcement gave its initial size as more than 500 million objects and 3.5 billion facts, and summarised the aim in a phrase that became shorthand for the whole shift: things, not strings.
An entity is a different kind of object from a keyword. Mercury the string is ambiguous. Mercury the planet, mercury the element and Mercury the Roman god are three distinct entities, each with its own attributes and connections. A system that recognises which one a page is about can match it to queries that never use the word, and can avoid matching it to queries about the other two.
Whole-query understanding
Three developments over the following decade moved from understanding words to understanding sentences.
Hummingbird (2013). Google announced in September 2013 that it had replaced its core search algorithm with one designed to interpret the meaning of an entire query, particularly longer, conversational ones, instead of matching terms individually (Wikipedia).
RankBrain (2015). Made public in October 2015, RankBrain was a machine-learning system that represented words and phrases as vectors, so that queries the engine had never seen could be related to ones it had (Wikipedia).
BERT (2019). In October 2019 Google announced that it was applying a neural language model called BERT to queries, and said it would affect about one in ten searches in US English. BERT reads each word in the context of all the words around it, in both directions. The announcement’s examples turned on small words such as to and for, the prepositions that earlier systems discarded and that often reverse the meaning of a query.
Google followed these with MUM, announced in May 2021 as a model that works across languages and across text and images. Its 2022 overview describes how these systems operate together, each handling a different part of the job, with none replacing the rest.
What this means for writing pages
The practical advice that follows from this history is mostly a list of things that are no longer necessary.
- Do not build pages for word variants. Singular and plural, tenses, and common misspellings have been matched automatically for two decades. Separate pages for each are duplicates.
- Do not repeat a phrase to “reinforce” it. Density of an exact phrase stopped being useful when engines stopped matching exact phrases. Use the natural range of terms a knowledgeable writer would use.
- Be unambiguous about what the page is about. Entity recognition works from context. Name the thing clearly, early, and include the specifics that identify it: the full product name, the location, the date, the model number. A page that could be about three different things is matched confidently to none of them.
- Answer the question as asked. Language models interpret the intent behind a query, including its small words. A page that addresses how to do X without Y is distinct from one about how to do X with Y, and engines now tell them apart. Cover the specific question properly.
- Keep the searcher’s vocabulary. None of this removes the value of using the words your readers use. If they say holiday let and you say short-term rental accommodation, the engine will probably connect the two, but the reader scanning the results may not. Titles and headings in the searcher’s own terms still matter.
Google’s own summary of what it wants from content is in its guidance on helpful, people-first content. It contains no instruction about keywords. That absence reflects where forty years of work on matching has led.
One caution
It is common to read that because search is “semantic”, words no longer matter. That overstates it. Every system described here is a way of connecting the words in a query to the words on a page more intelligently. A page still has to say, in language, what it is about. The change is that it now needs to say it once and well.