Skip to content

docs(site): transliterate for display, fold for finding - #17

Merged
stephen-masters merged 2 commits into
mainfrom
docs/fold-article
Oct 12, 2026
Merged

stephen-masters merged 2 commits into
mainfrom
docs/fold-article

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

A new Method article on tetrak.dev: a gentle introduction to what a fold is, using the four places Tetrak already uses one.

  • What a fold is: many inputs onto one key, on purpose. Case folding and accent folding as the familiar examples, and the claim every fold makes about what doesn't matter.
  • The three folds Tetrak already runs, each with its lesson: the script fold on the recogniser's output (and the dash that turned out to be grammar), the accuracy metric's fold (fold at the point of comparison), and the trainer's cleaning on both sides of the overlap check (the same fold on both sides).
  • Why transliteration is for display: the five Armenian schemes side by side, each right for its own reader.
  • Why you can't search with one, and how tetrak-translit's Armenian fold works, at index time and at query time.
  • Why Georgian needs its own rules, and why fold() refuses Latin text without script=.
  • The known gaps, kept as failing tests.

Every code output was run against tetrak-translit 0.2.0. No benchmark figures are carried. Build, markdownlint and all 31 Playwright tests pass locally.

🤖 Generated with Claude Code

A gentle introduction to folds, because Tetrak uses one in four places:
the script fold on the recogniser's output, the accuracy metric's fold,
the trainer's transcript cleaning on both sides of the overlap check,
and tetrak-translit's fold() for search across scripts. It draws three
lessons from the first three, then uses the five Armenian schemes to
show why a transliteration serves a reader and cannot serve an index,
and walks through the Armenian fold, index and query time, the Georgian
rules that refuse to share it, and the known gaps kept as tests.

Every code output was run against tetrak-translit 0.2.0. No benchmark
figures are carried.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3647c3
Status: ✅  Deploy successful!
Preview URL: https://b6d28e87.tetrak.pages.dev
Branch Preview URL: https://docs-fold-article.tetrak.pages.dev

View logs

Leads with Hovhannes Tumanyan, whose books carry Tumanyan, Tumanean,
Toumanyan and Tumanian on their covers: four correct romanisations of
two Armenian spellings, and the problem a fold solves. The fold section
returns to him and names the spellings it does not yet catch
(Thoumanian; Hovannes and Ovanes). The scheme table shows Boghosian's
name in both spellings, since the Western -ian comes from the classical
-եան. Dated 12 October, with the file renamed to match.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stephen-masters
stephen-masters merged commit d6a2da6 into main Oct 12, 2026
8 checks passed
@stephen-masters
stephen-masters deleted the docs/fold-article branch October 12, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant