Skip to content

Stemming vs lemmatization: why your store misses other word forms

Obsah článku

O autorovi článku

RNDr. Milan Fraňo, PhD. – SEO špecialista a web editor – wooacademy

O autorovi článku

RNDr. Milan Fraňo, PhD. – SEO špecialista a web editor – wooacademy

☕Páčil sa vám článok? Podporte nás likom na YouTube kanál alebo kúpou kávy.

Stemming chops the ending off a word and keeps the stem (chargers, charging, charged → charg). Lemmatization finds the dictionary base form (chargers → charger, ran → run). Both make search find a product regardless of the number, case or tense the shopper uses. Stemming is fast and simple; lemmatization is more accurate but needs a dictionary and more computation.

Why it matters more for Slovak and Czech stores than for English ones

English has a handful of endings (shoe, shoes). Slovak and Czech have seven cases, three genders and dozens of declension patterns. One noun commonly has more than ten forms. A shopper types “nabíjačky na mobil” (phone chargers), the product is called “Nabíjačka na mobil USB-C”. Without handling word forms, “nabíjačky” and “nabíjačka” are two different words to the computer.

Default WordPress and WooCommerce search looks for text with an SQL LIKE condition. A partial string would match both, but the full word “nabíjačky” does not find a product that only has “nabíjačka” in its title. In English the same happens with irregular plurals and with queries such as “batteries” against “battery”.

Stemming and lemmatization compared

The Stanford textbook Introduction to Information Retrieval describes it the same way: stemming is a crude heuristic that chops off the ends of words, lemmatization uses a vocabulary and morphological analysis to return the dictionary form.

Where stemming goes wrong and how to work around it

  • Over-stemming. “Universe” and “university” can end up with the same stem. The fix is a cautious stemmer that only removes common endings, plus ranking that prefers exact matches.
  • Irregular forms. “Mouse” and “mice” are not joined by a stemmer. In a store this is rare, and when it happens search synonyms help.
  • Brands and codes. “Adidas” must not lose its “s”. Short words, numbers and codes should stay unchanged.

How wooacademy search 1.0.3 handles it

In the plugin I chose a light stemmer for Slovak and Czech. The reason is speed: the stemmer runs on every keystroke in autocomplete and with thousands of products the result must arrive within a few milliseconds.

  • During indexing, words from the title, description, categories and attributes lose their diacritics and are reduced to a stem.
  • The query is processed the same way, so “nabíjačky”, “nabíjačkou” and “nabijacka” meet at the same stem.
  • Short words and words containing digits are left unchanged.
  • An exact match weighs more than a stem match in ranking. More on how the order is built in the article on search relevance.
  • Typo tolerance runs on top of the stemmer, so it also copes with a missing letter.

How to tell whether word forms cost you results

Search for five products in the plural and in another grammatical case. If the results differ noticeably from a search in the base form, your search does not join word forms. In the search terms report you will then see exactly these queries among zero results.

Frequently asked questions

Is lemmatization always better than stemming?

For text analysis yes, for store search not necessarily. Stemming is faster, and for product titles the accuracy difference is small when ranking prefers exact matches.

Does the stemmer work for English?

The wooacademy search stemmer is built for Slovak and Czech. English stores benefit mainly from typo tolerance, synonyms and ranking.

Do I have to rewrite product titles because of stemming?

No. Word forms are handled in the search index, the texts on your site stay unchanged.

What are stop words and are they related to stemming?

Stop words are very common words (a, the, for) that search ignores or gives little weight in ranking. It is a different text processing step, done at the same stage.

Author: Milan Fraňo, wooacademy.sk. I build WooCommerce stores, tracking setups and SEO. I developed the wooacademy search plugin for stores that want good search without paying a monthly fee to an external service.

O autorovi

RNDr. Milan Fraňo, PhD.

HEAD of SEO, web editor, co-founder wooacademy

Môj príbeh SEO špecialistu …

SEO konzultácia

Naplánuj si konzultáciu
s našimi profesionálmi.

konzultacia social kampane

Facebook marketing partner – social marketing

HEAD of SEO a web editor – weby & SEO

Google certifikovaná trénerka – Google ads kampane (PPC)

Zanechajte nám kontaktné informácie a pripravíme cenovú ponuku na mieru ?

Marketingové služby na mieru, ozvite sa!

    Nechajte číslo a ozveme sa do 60 minút — v pracovné dni 9:00–17:00. Jeden telefonát, žiadny newsletter.








    Pošleme naň len potvrdenie, že požiadavku máme. Žiadny newsletter, žiadne ponuky.

    Kedy sa vám hodí?




    Pomôže nám prísť na telefonát pripravení.

    Číslo použijeme iba na tento hovor. Údaje spracúvame na základe vašej žiadosti, uchovávame najviac 24 mesiacov a nikomu ich nepredávame. Zásady ochrany osobných údajov

    Nechce sa vám čakať? 0940 634 491 · info@wooacademy.sk