Nakodo works with three platforms, and nearly every page on the site has to say so. There is no helper for it. There is no constant. The sentence "YouTube, Instagram and TikTok" is typed by hand, in the source, 88 times across 48 files, mostly in the content files under src/content.

That is what you get from writing copy in TypeScript objects, and I wanted to know what it costs. So I fetched all 106 URLs in the sitemap, took the visible text inside <main>, and counted every way the three names are listed.

Every ordering, with and without the comma

I tried all six orderings of the three names, each with an "and" and with an "or", each with and without a comma before the last item. Anything with a count is below.

Text on the page Occurrences Pages
YouTube, Instagram and TikTok 211 105
Instagram, TikTok and YouTube 17 11
TikTok, Instagram and YouTube 3 2
YouTube, TikTok and Instagram 1 1
YouTube, Instagram or TikTok 11
YouTube, TikTok or Instagram 2

232 lists joined by "and", 13 by "or", and 0 with a comma before the last item. All six with-comma spellings of the "and" form come back empty.

The first spelling is on 105 of 106 pages because it is in the call to action that closes every content page, which is a single component in content-page.tsx ("Nakodo reads your website, searches YouTube, Instagram and TikTok, ..."). Counts per page run from 0 to 7, and 50 pages have exactly one. The privacy page is the only one without it.

The other orderings are 21 uses on 14 pages:

The comma rule is a house style nobody wrote down

The site is British English, so "A, B and C" is the default. The brand rules in the repository ban the em dash, the exclamation mark, a list of marketing words and one verb, and the content test enforces all of them. Nothing in the repository mentions a serial comma. The result is the same, 0 in 245, because I write it one way without thinking and every page I add gets copied from a page that already does.

It is not a rule the site follows without exceptions, though. A search of the source for , and TikTok, , and YouTube and , and Instagram finds 22 lines, and 58 raw matches in the rendered HTML. Most are a comma before "and" that joins two clauses, not a third item. One is a real serial comma, on the how to find influencers guide:

YouTube suits products people research first, Instagram suits things that look good and places people visit, and TikTok suits products that make their point in seconds.

A list of three clauses, each with its own commas inside, needs the last one to stay readable. So the rule I follow is "no serial comma between names, one between clauses", and a regex for it would false-positive on that sentence and on 57 others.

What Intl.ListFormat would have done

This is the part I should have known when I started typing the string. The platform does the comma for you, and it does it per locale:

const names = ["YouTube", "Instagram", "TikTok"]; new Intl.ListFormat("en-GB", { type: "conjunction" }).format(names); // "YouTube, Instagram and TikTok" new Intl.ListFormat("en-US", { type: "conjunction" }).format(names); // "YouTube, Instagram, and TikTok" new Intl.ListFormat("en-GB", { type: "disjunction" }).format(names); // "YouTube, Instagram or TikTok" 

The en-GB output is the string the site already has, character for character, and the or form is the 13 I wrote with "or". So a function that took Platform[] and returned the string would have produced all 245 lists, in the order the product's enum already has (youtube, instagram, tiktok, and web, which is not a social platform and would be filtered out). The three oddly ordered pages would have needed an explicit order, which is what they should have had.

Why I have not done it

Most of the 88 occurrences are inside longer sentences in static content objects that a test checks and a person reads. Replacing a literal with a template string would make each of them harder to read in the file and give the reader of the page nothing. A helper would earn its keep where the list is built from data in code, such as the line that says which platforms a plan covers, because the list there changes with the plan and a hand-typed string can go stale.

What I would add is small: a test that fails on the one ordering that is a slip, YouTube then TikTok then Instagram. That ordering is wrong whichever page it is on, and it would have caught the calculator page. I have not added it yet. The calculator page is still wrong at the time of writing.

Reproduce it

const T = visibleText(html); // <main> only, scripts, styles and SVG removed const names = ["YouTube", "Instagram", "TikTok"]; for (const perm of permutations(names)) { for (const oxford of [false, true]) { const [a, b, c] = perm; const s = oxford ? `${a}, ${b}, and ${c}` : `${a}, ${b} and ${c}`; console.log(s, (T.match(new RegExp(s, "g")) ?? []).length); } } 

Run it over every URL in the sitemap and sum. It takes about a second once the HTML is on disk, and it is a quick way to find the sentence you wrote differently once, a year ago.