--- license: other license_name: cc-by-4.0-dictionary-place-names-per-row-source-licences license_link: LICENSE language: - th - en pretty_name: "Thai Roots · รากศัพท์ — Thai word families, with the place names of Chiang Mai and Chiang Rai" size_categories: - 10K The word lists in `root_places` are the dictionary's words in each family, ordered by how often the place names use them. ## Configs **roots** (257) — `root_id`, `section` (indic, native, affix) with its English and Thai name, `root`, `romanization`, `pali`, `gloss_en`, `gloss_th`, `note_en`, `note_th`, `lore_en`, `lore_th` (the custom or story around the root, where the page tells one), `cognates`, `word_count`, `wiktionary_family_count`. **words** (974) — `word_id`, `root_id`, `thai` (variant spellings joined by " / "), `romanization` and `ipa` (machine-generated with tltk; rare compounds carry the odd error), `source_form` (P. = Pali, Skt. = Sanskrit), `gloss_en`, `gloss_th`, `pos_th`, `note_en`, `note_th`, `caveat_en`, `caveat_th`, `confidence`, `sources`, `registers` (everyday, news, government, law, Buddhist), `rules` (the sound-change rules that show in the spelling, K1–K12), `freq_tier` (0–3, the dots on the page, from Thai National Corpus frequency). `confidence`: 595 `verified` (the etymology agrees with Thai Wiktionary's own entry), 331 `standard` (the mainstream assignment, not yet checked against a second source), 48 `debated` (sources disagree, or the derivation is traditional rather than shown). **rules** (12) — `rule_id`, `name_en`, `name_th`, `body_en`, `body_th`, `examples`. K4, for one: the ์ (การันต์) mark silences the Indic tail a Thai syllable cannot say, so ศาสตร์ still shows *-stra*. **word_index** (1,077) — the Thai forms the page's decomposer looks up, each pointing to its root and word. `word_id` is null for a root's own head word. **places** (65,534) — one row per Mot Dang place with a Thai name: `place_id`, `province`, `name_th`, `name_en`, `categories`, `subcategories`, `amphoe`, `tambon`, `lat`, `lng`, `url`, `tokens` (the name broken into words), `matches`, `match_count`, `source_licences`, `osm_derived`. Names with no match are in, with an empty list. A match: `thai`, `root_id`, `word_id`, `section`, `root`, `gloss_en`, `token` (its position in `tokens`), `how`, `other_sense`. - `how: word` — the token is a Thai Roots word. - `how: in_compound` — the token breaks wholly into dictionary words and one of them is a Thai Roots word: โรงเรียน gives เรียน, ส้มตำ gives ตำ. - `other_sense` — set on คำ and สระ, whose usual sense in a place name is not the dictionary's: คำ is Lanna gold (ดอยคำ, หอคำ), สระ a pool. 809 matches carry it. **root_places** (220) — per root: `places`, `words` with counts, `top_categories`. ## How the join was made Names were broken into words with PyThaiNLP 5.4 (`newmm`) over its Thai word list plus the 1,077 Thai Roots forms. A token not in the dictionary, four letters or longer, was broken again with itself left out of the word list, and counted only when every piece was a dictionary word. Confirmed foreign words in Thai script from [thapsap](https://github.com/NaNoBotCo/thapsap) are not broken (ดีไซน์ is design, not ดี + ไซน์), and seven names are on a short list that the build leaves whole (ตำหนัก, ตำนาน, ตำรับ, ตำหรับ, เชียงของ, ไก่ชน, ชนไก่). Read by hand on 26 Nov 2026, a random 50 of each, with the `other_sense` rows set aside: 46 of 50 `word` matches right, 50 of 50 `in_compound`. The four misses: a word break inside a name (อำพันธ์ read as อำ + พันธ์, ตุสิตา as ตุสิ + ตา), ทาน the polite "eat" read as almsgiving, and ยา in the subdistrict name หายยา. ## Licence The dictionary layer (roots, words, rules, word_index) and the join (tokens, matches, counts): **CC BY 4.0**. Attribute to Thai Roots (NaN), with a link to https://nanobotco.github.io/thairoots/. Place names, coordinates and categories in `places` carry the licence of the source each row came from, listed per row in `source_licences`. 8,333 rows are `osm_derived` and carry **ODbL 1.0**, © OpenStreetMap contributors; a database derived from those rows carries ODbL too. Overture rows are CDLA-Permissive-2.0; Thai government registers are Open Data Common. See LICENSE. Whole-word Thai glosses drawn from Thai Wiktionary are not here: `gloss_th` is filled only where the Thai gloss is the dictionary's own (`gloss_th_source: editorial`), and the rest are in [NaNoBotCo/thai-roots-wiktionary](https://huggingface.co/datasets/NaNoBotCo/thai-roots-wiktionary) under CC BY-SA 3.0, by `word_id`. ## Cite Thai Roots · รากศัพท์ (NaN, 2026). https://nanobotco.github.io/thairoots/ — dataset https://huggingface.co/datasets/NaNoBotCo/thai-roots Contact: Nan · nan@motdang.net · more from the same publisher: https://nanobotco.github.io/index/