Sub topic 10
Measuring thin pages beyond word count
This chapter assumes you can read a crawl export (URL, status, template, word count, inlinks) and filter and group rows in pandas. It also assumes you know the difference between an exact duplicate, a near duplicate and a thin page from earlier chapters. Here you will build a small set of measurements that describe how thin a page is. You will not decide what to do about thin pages yet. Triage by template and intent comes in the next chapter.
Why a single word count misleads
A crawl export usually has a word_count column, and it is tempting to sort ascending and call everything under 200 words thin. That filter fails in both directions.
- False positives. A contact page, a login page, a calculator or a short glossary definition can be complete at 60 words. The page answers its visitor's need.
- False negatives. A product page with 400 words can still be thin if 380 of them are the shared header, footer, shipping policy and "related products" block.
- Inconsistent counting. Crawlers differ in what they count. Some count all visible text and some try to isolate the main content area. Two tools can report different numbers for the same page. Check how your tool defines the field before you compare numbers across exports.
Search engines do not publish a word-count threshold for "thin". A page is a problem when it gives a visitor little that is useful or that appears nowhere else on your site. Your measurements should approximate that idea.
The measurements that matter
Each metric below answers a different question. No single one decides the outcome.
| Metric | Question it answers | Typical source | Caveat |
|---|---|---|---|
| Main-content word count | How much text is left after boilerplate is removed? | Your own extraction, or a crawler's content-area setting | Depends on how well boilerplate is detected |
| Boilerplate share | What fraction of the page's text is repeated site-wide? | Line or block frequency across the crawl | A high share on a short page is a warning sign |
| Unique-text share | How much main content appears on no other page? | Comparing lines or shingles across pages | Needs the whole crawl, not one page |
| Inlinks | Does the site treat this page as important? | Crawl link graph | Describes importance, not thinness |
| Template | What kind of page is this? | URL pattern, CSS class or crawler custom extraction | Thresholds should differ by template |
| Index status | Can this page appear in search at all? | Status code, canonical, noindex, robots | A noindexed thin page is a smaller concern |
| Traffic or impressions | Does anyone find or use it? | Search console or analytics export joined by URL | Absence of traffic on a new page proves little |
Text-to-HTML ratio is often listed as a thin-content metric. It mostly measures how heavy the markup and scripts are, not how useful the text is, so treat it as weak evidence at best.
How the measurements fit together
Computing main content and unique share
The script below uses a toy crawl of four pages. A line that appears on at least 75% of crawled pages counts as boilerplate. A line that appears on exactly one page counts as unique. On a real crawl you would load your own export with one text block per page, and you might split by block element instead of newline.
from collections import Counter
import pandas as pd
BOILERPLATE_SHARE = 0.75 # line is boilerplate if on this share of pages or more
MIN_MAIN_WORDS = 10 # toy value; real sites need a larger, per-template value
MIN_UNIQUE_SHARE = 0.5
rows = [
{"url": "/shoes/trail-runner", "template": "product", "inlinks": 14,
"text": "Trail Runner\n"
"A grippy shoe for muddy trails with a rock plate and a wide toe box.\n"
"Free shipping on orders over 50 dollars\n"
"Subscribe to our newsletter"},
{"url": "/shoes/road-glide", "template": "product", "inlinks": 9,
"text": "Road Glide\n"
"A light road shoe with a breathable mesh upper and a soft foam midsole.\n"
"Free shipping on orders over 50 dollars\n"
"Subscribe to our newsletter"},
{"url": "/tags/waterproof", "template": "tag", "inlinks": 3,
"text": "Tag: waterproof\n"
"Trail Runner\n"
"Road Glide\n"
"Free shipping on orders over 50 dollars\n"
"Subscribe to our newsletter"},
{"url": "/contact", "template": "info", "inlinks": 40,
"text": "Contact us\n"
"Email help at example dot com\n"
"Free shipping on orders over 50 dollars\n"
"Subscribe to our newsletter"},
]
df = pd.DataFrame(rows)
df["lines"] = df["text"].map(
lambda t: [line.strip() for line in t.split("\n") if line.strip()]
)
# On how many pages does each distinct line appear?
line_pages = Counter(line for lines in df["lines"] for line in set(lines))
n_pages = len(df)
def words(lines):
return sum(len(line.split()) for line in lines)
def measure(lines):
boiler = [l for l in lines if line_pages[l] / n_pages >= BOILERPLATE_SHARE]
main = [l for l in lines if l not in boiler]
unique = [l for l in main if line_pages[l] == 1]
return pd.Series({
"total_words": words(lines),
"main_words": words(main),
"unique_words": words(unique),
})
df = df.join(df["lines"].map(measure))
df["boilerplate_share"] = 1 - df["main_words"] / df["total_words"]
df["unique_share"] = (df["unique_words"] / df["main_words"]).fillna(0)
df["few_main_words"] = df["main_words"] < MIN_MAIN_WORDS
df["low_unique"] = df["unique_share"] < MIN_UNIQUE_SHARE
print(df[["url", "template", "main_words", "unique_share",
"few_main_words", "low_unique", "inlinks"]].round(2))Read the results page by page:
- The two product pages have 17 and 16 main words, and most of that text is unique. Their titles also appear on the tag page, so the title lines are not counted as unique. Neither page is flagged.
- The tag page has 6 main words, and only 2 are unique. The rest is a list of product names that exist elsewhere. It trips both flags.
- The contact page has 8 main words, which trips the word-count flag. All 8 are unique, and it has 40 inlinks. This is a short page that does its job, which a word-count filter alone would have flagged as thin.
The two flags separate a page that has little text (the contact page) from a page that has little text of its own (the tag page).
Choosing thresholds
The cutoffs in the script are toy values for a four-page sample. For a real site:
- Set thresholds per template. Compute the median and the 10th percentile of
main_wordswithin each template. A product page at the 10th percentile of its template is more informative than one under a fixed site-wide number. - Tune the boilerplate share to crawl size. On a crawl of 20 pages, a 75% rule can misclassify. On a crawl of tens of thousands it is stable. A line that appears on every page of one section but nowhere else, such as a category-specific banner, will not reach 75% of the whole site. Compute the share within each template as well.
- Check a sample by hand. Open 10 flagged pages and 10 unflagged pages. If flagged pages look fine, or unflagged pages look empty, adjust the extraction before adjusting the threshold.
Context fields change the meaning
A flagged page is a candidate. Context fields decide how worried to be.
- Indexability. A thin page with
noindex, a canonical pointing elsewhere or a redirect is already handled in some way. Verify that the handling is consistent. The next chapter covers how. - Inlinks. A thin page with many inlinks is prominent on the site, so a visitor is likely to reach it. A thin page with zero inlinks may be an orphan left over from a past change.
- Traffic. A thin page that earns impressions or clicks is meeting some demand. Joining a search export by URL stops you from deleting a page that quietly performs.
- Duplicate membership. If the thin page is also in a duplicate cluster, fix it as part of that cluster. Most thin pages with a low unique share are near duplicates of something else.
Common errors
- Using the crawler's word count as main content. If the tool counts nav, footer and sidebar text, short pages look longer than they are.
- Comparing templates against one cutoff. Category pages, articles and utility pages have different normal lengths.
- Computing unique share from a partial crawl. If the crawl was capped or blocked by robots rules, pages that duplicate each other may be missing and the unique share looks too high.
- Treating pagination or faceted pages as plain thin pages. Their thinness often comes from the URL pattern, covered in the parameter chapter. Fix the pattern, not each page.
- Ignoring rendering. If the crawl did not execute JavaScript and the main text is loaded by script, every page can look empty. Compare a raw crawl with a rendered one for a sample of URLs.
Exercise
A crawl shows a pricing page with 95 main words, a unique share of 1.0, 60 inlinks and steady search impressions. A second page, a location page for one of 400 branches, has 140 main words, but 130 of them are identical on every other location page except for the city name. Which page is more likely thin, and which two measurements show it?
Show answer
The location page is more likely thin. Its main word count looks acceptable, but its unique-text share is very low, since almost all of its text repeats on the other location pages. Together with its template (400 near-identical pages), this indicates thin content that is also near duplicate. The pricing page is short but fully unique, well linked and visible in search, so its low word count alone does not make it thin.