Thai Legal Reference Tool

CDA 2558 App

An interactive, searchable reader for Thailand's Communicable Disease Act B.E. 2558 (2015) — fixing the Thai-numeral readability and broken PDF text-search that make the official scanned version hard to actually use.

Live App Legal Reference Public Health Unofficial / Educational
Open Live App ↗
CDA 2558 interactive viewer showing the Thai Communicable Disease Act with search and article index
What This Is

CDA 2558 refers to the Thai Communicable Disease Act, B.E. 2558 (พระราชบัญญัติโรคติดต่อ พ.ศ. ๒๕๕๘) — Thailand's core public-health law governing disease surveillance, outbreak control, and enforcement powers, originally enacted in 2015. This app is an unofficial, educational interactive reader for the Act — clearly labeled as such, not a government product.

Problem

The Act's only public source is a scanned, formatted PDF from the government site. The official text uses Thai numerals (๐–๙) for section numbers, which are slow to scan, and the PDF's stacked Thai vowel and tone marks routinely break copy-paste and text search — pasted or searched text often comes out garbled or simply doesn't match, making it hard to quickly cross-reference a specific article.

Approach

Rather than trying to parse the PDF programmatically, the Act was manually transcribed once into clean, structured data — chapters, articles, and content kept separate from stable internal IDs. From that clean base, digits can be displayed as Thai or Arabic numerals interchangeably (toggleable, saved as a preference), while lookups and cross-references are normalized under the hood so an article reference resolves correctly regardless of which numeral system it's typed or displayed in — directly fixing the "search doesn't match" problem at its root, instead of fighting the original PDF.

Legal terms and article references throughout the text are auto-linked with hover previews, so reading one section and following a cross-reference to another no longer means losing your place and re-scanning the whole document.

Outcome

A live, public tool used as a personal and educational reference for a law the author works with directly in disease-surveillance and public-health practice.

Unofficial and educational — always defer to the official government-published text for legal purposes. Not a PDF-parsing or OCR tool; the legal text itself was manually transcribed once into clean data.
Tech Stack
React 19 + TypeScript Vite Tailwind CSS React Router Tippy.js Vercel