My directory publishes 4,289 review counts. None of them is a review.
Every card in my AI tool directory carries a star rating. I have never looked at where those stars...
Every card in my AI tool directory carries a star rating. I have never looked at where those stars come from, because the column felt like the one number on the page I could not get wrong: it was not text I wrote, it was data I mirrored.
Yesterday I finally traced it. Two answers, and neither one is good.
The rating column has no provenance flag
The schema has six models: Tool, Category, Tag, two join tables, and a crawl log. None of them can store a review. There is no review form for readers, no submission route - the app has exactly three route handlers, a click redirect, a badge renderer and an import template - and the only manual surface is an admin edit box that the 21 hand-written editorial entries in git never used to set a rating.
So every one of the 4,289 star widgets that render on the live site today was written by an automated path, and the rating column stores the result with no marker of which path produced it. That means I cannot filter for "ratings I made up" in the database. I had to reconstruct it from code.
Two writers exist. The crawler reads aggregateRating.ratingValue out of the source directory's own JSON-LD and stores it. The other path is the one I did not remember.
147 ratings are a hash of the URL slug
The original hand-entered batch was created by a seed script:
const rating = Math.round(seededRange(`rating:${slug}`, 3.9, 4.9) * 10) / 10;
const ratingCount = Math.round(seededRange(`count:${slug}`, 80, 4800));
const verified = rating >= 4.4;
seededRange is an FNV-1a hash of the seed string, mapped into a range. Deterministic, stable across restarts, and completely disconnected from reality. I wrote it as a placeholder in week one so the cards would not render empty.
The same fallback is duplicated in the CSV importer used by the admin screen, so any import that omits a rating still gets one invented today:
const rating = record.rating && record.rating >= 1 && record.rating <= 5
? record.rating
: Math.round(seededRange(`rating:${slug}`, 3.9, 4.9) * 10) / 10;
To check which live rows came from it, I re-implemented the hash in 15 lines of Node, pulled every row out of the production database read-only, and recomputed both numbers from each slug. 147 rows match on both fields at once. Those 147 are exactly the set with an empty sourceUrl โ every hand-entered listing, no exceptions โ and 0 of the 4,271 crawled rows match.
That joint test is not fragile. The rating is drawn from 11 possible values and the count from about 4,721, so a crawler row would land on both by chance roughly once in 52,000 tries. Across 4,271 rows I would expect 0.08 accidental matches. I found 147.
Then I verified it from outside, the way a reader or a search engine sees it. I checked the eight largest ones over plain HTTPS with no cookies; all eight matched. Five of them:
crisp: ld+json 4.7 / 4783 db 4.7 / 4783 match
mubert: ld+json 4.1 / 4716 db 4.1 / 4716 match
suno: ld+json 4.7 / 4714 db 4.7 / 4714 match
deepbrain-ai-studios: ld+json 4.6 / 4682 db 4.6 / 4682 match
memex: ld+json 4.9 / 4601 db 4.9 / 4601 match
/tool/kimi prints (1,817) next to its stars; that string appears six times in the page source. The number of people who ever rated Kimi anywhere that I could see is zero in my database, because my database cannot hold a rating.
Those 147 fabricated review counts add up to 354,717 declared ratings, and all 147 pages are in the live sitemap.xml (4,546 URLs) that I submitted to Google and Bing.
The Verified badge is that same random number, thresholded
const verified = rating >= 4.4 โ the badge that reads "the manufacturer claimed this listing" was assigned by comparing a hash of the slug to 4.4. It holds for 147 out of 147 rows: 83 of them cleared the threshold and wear the badge. Nobody claimed anything. I picked 4.4 because it made the sample data look plausible.
The other 4,142 are real numbers that still say nothing
The crawled ratings genuinely come from somewhere. They are the source directory's own aggregate, which arrives exactly as useless as you would hope:
| measure over the 4,289 rated rows | value | | --- | --- | | rated 4.0 or higher | 4,259 (99.3%) | | rated 4.5 or higher | 2,985 (69.6%) | | rated exactly 5.0 | 761 (17.7%) | | median number of ratings behind the stars | 3 | | rows with 3 or fewer ratings | 2,328 (54.3%) | | rows with 100 or more ratings | 146 (3.4%) |
693 listings show a perfect 5.0 that stands on two ratings or fewer. I spot-checked my own highest-intent page: the first page of the free-tools listing renders 48 star widgets, ranging from 4.4 to 5.0, and for the cards I could match back to a row the median count behind the stars was 7. Adobe Firefly shows 4.6 from 12 ratings. ChatGPT shows 4.4 from 19. Photoshop AI shows a flawless 5.0 from 1.
A column where 99.3% of the entries are 4.0 or higher and the median sample is three ratings carries less signal than a coin flip, because at least a coin flip admits it is random.
One listing is rated 6.3 out of 5, and it is number one twice
The crawler stores whatever number it finds, with no clamp. One row got 6.3. So today:
/tool/dall-e-2publishes{"ratingValue": "6.3", "ratingCount": 3, "bestRating": "5"}โ a rating 26% above its own declared maximum, from three ratings.- The stars render as five filled, with
aria-label="Rated 6.3 out of 5". - Because "Top Rated" sorts by rating descending, Dall-E 2 is the #1 tool on my whole site.
- The same score formula puts it #1 on the image-generation best-of list, where it is also the first
itemListElementin the JSON-LD.
I pulled the live "Top Rated" page and checked its ordering: strictly non-increasing in (rating, ratingCount), exactly as coded. The 48 cards on page one are built from 6 distinct (rating, ratingCount) pairs. Everything else is row order.
The same integer gets published under two schema properties
On the tool pages:
"aggregateRating": { "ratingValue": "4.5", "ratingCount": 1817, "bestRating": "5" }
On the best-of pages, the identical field from the identical row:
"aggregateRating": { "ratingValue": 4.5, "reviewCount": 1817, "bestRating": 5 }
ratingCount and reviewCount are not the same assertion, and on the best-of page one of them appears 20 times while the other appears zero. Google's own guidance treats aggregate rating markup without on-page reviews as a structured-data violation, which is the polite way to say: I handed a search engine a number I invented and asked it to put stars under my title.
The best-of pages even carry a "How this ranking is built" box that says ratings are "mirrored from the public source directory". For 147 listings that sentence is false, and it is false in a section written to earn trust.
What the column actually drives
My money-page ranking function has a doc comment that made me sit down for a second:
/** Ranking score from the fields we actually have - no invented quality signals. */
tool.rating * 10 + Math.log10(1 + tool.ratingCount) * 4 + Math.log10(1 + tool.views) * 3 + ...
Averaged over every rated row: 45.1 points from rating, 2.8 from ratingCount, 10.9 from views. 81.2% of the score comes from the two rating fields, and "no invented quality signals" is doing a lot of work in that comment. Two good news items, honestly: none of the 147 invented rows reaches a published top-10, because their invented view counts are 0. But 30 of the 120 rows that do appear in a best-of top-10 sit on 3 ratings or fewer.
The same table also gates indexing: a tool page only enters the sitemap if it has views, clicks, a badge, or a written note. For the hand-entered batch every row has 0 views and between 5 and 22 outbound clicks, which is arithmetically impossible for a human, because clicking requires seeing. clickCount is incremented one at a time by the redirect route with no bot filter and no event log, then printed on the public page as "18 visits".
What I am changing
Nothing was deployed while I wrote this, so this is a list and not a report:
- Delete the seeded fallback from both the seed script and the importer. A missing rating must stay missing.
- Add a provenance column (
seeded/mirrored/manual) before any rating is written again, so this question takes aWHEREclause instead of a hash reproduction. - Stop emitting
aggregateRatingentirely until there is a real source; keepoffersandSoftwareApplication. - Clamp scraped ratings to the declared scale, and hide the stars below a minimum sample rather than rendering 5.0 from one rating.
- Re-derive the 83 badges; the "verified" flag has to come from an actual claim, not from a threshold on a random number.
- Rank the lists on the mirrored readership counter alone, and label it as borrowed interest.
The ranking pages are where all of this is visible at once, since each one publishes its score inputs in a table: the best-of lists. If you want to check my work, the reproduction is one hash function and a SELECT.
One thing I got out of this: a placeholder metric does not stay a placeholder. It gets rendered, it gets indexed, it becomes 81% of a ranking formula, and after a while it stops being scaffolding and starts being the building.
Sumber artikel open-source oleh Mindutil di DEV Community โ Baca artikel asli. Topik:
#ai#webdev#seo#datascience

Komentar