Free tools & games for everyone
Free · No sign-up · No accounts
See how a search engine orders results: TF-IDF, BM25 and PageRank on a small made-up site or your own pages, with every score explained.
| Enter | In the search box: search |
|---|---|
| Left Right | On a slider: smaller or larger |
Text is lower-cased and split into words; stop words are dropped and, if you choose, a final s is removed (cookies and cookie count as one word; ss endings such as glass stay). TF-IDF weights a word by (1 + ln tf) × ln(N / df) in both the page and the search, and scores by cosine similarity. BM25 adds idf × tf(k1 + 1) / (tf + k1(1 - b + b × length / average length)) for each search word, with idf = ln(1 + (N - df + 0.5) / (df + 0.5)), the form used by Lucene. PageRank uses the random surfer model with damping d: every page gets (1 - d) / N plus d times the rank flowing in along links; pages with no links share their rank with every page. It is repeated until the values stop changing.
The PageRank share blends the two after scaling each to the best matching page. Real search engines combine hundreds of signals; this lab shows the classic ones. The baking site is made up, and everything runs in your browser.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product