• Shopware Gold Partner & Shopify Partner

WDF/IDF

WDF*IDF assesses how important terms are in a text by combining their frequency in the document (WDF) with their rarity across comparison documents (IDF). Content tools use this to show missing terms compared with the top results – an aid to topic coverage, not a guarantee of rankings.
WDF/IDF

WDF*IDF (also written WDF/IDF; internationally usually TF-IDF) is a text analysis method used in search engine optimisation for content optimisation. It combines two values: the “within document frequency” (WDF), i.e. how often a term appears in a document, and the “inverse document frequency” (IDF), i.e. how rare or common the term is across all the documents considered. The method comes from information science (where it is known as TF-IDF) and has been adapted for SEO tools. Unlike pure keyword density, WDF*IDF looks not just at a single keyword but at many terms in a text compared with the pages that rank well for the same search term.

In practice, WDF*IDF tools compare a text with the top-ranking pages for a search term and show which thematically important terms appear frequently there but are missing or under-represented in your own text. This helps with on-page optimisation to cover a topic more completely.

What is WDF/IDF?

The calculation is done in two parts. WDF relates the frequency of a term to the length of the document. So that the value doesn't simply keep rising with every repetition, it is “dampened” using a logarithm. IDF assesses how many documents a term appears in at all: terms that appear in almost all texts (such as “and” or “the”) receive a low weight, rarer, specific terms a higher one. The two values are then multiplied:

How do you calculate WDF?

WDF (i) = log2(Freq(i,j) + 1) / log2 (L)

i = keyword

j = document

L = number of words

Freq (i,j) = number of occurrences of the keyword in the document

How do you calculate IDF?

IDF (t) = log (1 + ND/ft)

t = term

ND = number of all documents

ft = number of all documents containing t

This results in:

Tools for WDF*IDF analysis

WDF*IDF analyses and comparable content analyses are offered by tools including:

  • Sistrix (Content Assistant)

  • Semrush (SEO Writing Assistant)

  • Surfer

  • Seobility

  • Clearscope

  • Frase

Advantages and limits of the WDF*IDF method

Compared with pure keyword density, WDF*IDF provides much more insight: the analysis shows which terms belong to the topic area of a search term and thus helps make content more complete. This is useful guidance, especially when creating briefs for copywriters or revising existing content. The goal remains a natural, readable text that answers readers' questions.

However, the method has limits. It shows which terms the top-ranking pages use – not why these pages rank. Rankings depend on many other factors, such as backlinks, user experience, technology and trust. Google itself doesn't use WDF*IDF in this form but understands language today with modern language models. Anyone rigidly trimming texts to particular term weightings also risks unnatural, less readable content. For online shops, the results are often less meaningful because navigation, product names and filters feed into the analysis. And anyone writing expertly about a topic uses the relevant terms anyway – the analysis is then mainly a check of whether important aspects are missing.

The choice of search terms is also important: for highly competitive terms, other factors such as a website's authority have a much greater influence on rankings than the choice of words in the text.