Writing

Notes from building Thai speech, translation, and document models, written for the people who will call the API.

01August 25, 2026 · 6 min readThai has no word spaces, and it changes how a translation API has to workWhy the absence of spaces between Thai words decides how markup is preserved, how a glossary matches, and where a naive text splitter goes wrong.02August 25, 2026 · 6 min readCounting the pages in a PDF, without a PDF libraryWhy an OCR endpoint that charges per page has to read the page count itself, and what it takes to do that from the bytes alone.03August 25, 2026 · 6 min readCharge before inference, refund on failureHow a metered API keeps its books correct when a request is replayed, a stream dies halfway, or the cache it depends on stops answering.