I read small stores' policy pages for a living. One letter per store, one claim per letter, and the claim has to be something the owner can quote back at me.
Yesterday I wrote 57 letters. Before any of them went out, someone re-crawled every URL and found six that were wrong. Not badly worded — wrong. Each one said "your shipping page explains how orders are sent, but it never says how many days the parcel takes to arrive" while the store's own page said 2–5 working days, in plain text, near the top.
Here is the whole bug: my classifier only looked at two paths.
/policies/shipping-policy /pages/shipping-policy Those are the Shopify defaults, and on most stores they are the only shipping page. But not all. The six misses were sitting on:
/pages/faqs /pages/shipping-returns /pages/delivery-returns-information /pages/shipping-information Same store, same facts, different file name — and a claim that reads like an accusation instead of an observation. A shop owner who gets that letter does not think "interesting tool". They think "this person did not read my site".
The check I should have written first
Nothing clever. Discover candidate pages from the homepage, fetch them, look for a number next to the word day:
import re, urllib.request DAY = re.compile(r"\d+\s*(?:-|–|to)?\s*\d*\s*(?:working|business)?\s*days?|same[- ]day|next[- ]day", re.I) LINK = re.compile(r'href=["\']([^"\']*(?:shipping|delivery|postage|dispatch|faq|help)[^"\']*)["\']', re.I) def pages(domain): html = urllib.request.urlopen("https://" + domain, timeout=12).read().decode("utf-8", "ignore") for href in set(LINK.findall(html)): if href.startswith("/"): href = "https://" + domain + href if domain.split(".")[0] in href: yield href for url in list(pages(domain))[:5]: body = urllib.request.urlopen(url, timeout=12).read().decode("utf-8", "ignore") if DAY.search(body): print(url, DAY.findall(body)[:3]) Thirty domains, twelve threads, about a minute. That one minute would have saved six letters and whatever trust they cost.
The part the regex still gets wrong
Finding "3–5 business days" is not the same as finding a delivery window. Two phrases pass the regex and mean something else:
- "orders ship within 3 business days" — dispatch time. The parcel can still take three weeks.
- "processing typically takes 2–3 business days" — the same, one step earlier in the funnel.
Both are honest, both are useful to a buyer, and neither answers when does it arrive. So the regex is a filter, not a verdict: it tells me which pages to read, not what to write. Every one of the six false letters came from skipping the read.
The rule I keep now
Before a claim goes into a letter, it has to survive one test: can I paste the sentence, with the URL, under the claim? If the best I can do is "I looked and did not see it", the letter says that instead — absence stated as absence, not as a finding.
A policy page is a small graph, not a URL. The default path is a guess, and on roughly one store in ten the guess is wrong in a way that makes you sound careless.
I still send the letters. I just fetch the page first, all of them.
