Datasets:
|
Download README.md from NaNoBotCo/thai-roots: direct link, hf CLI and curl.
- Browser
- Download file 9.49 kB
-
https://huggingface.co/datasets/NaNoBotCo/thai-roots/resolve/main/README.md
- Command line
-
hf download hf://datasets/NaNoBotCo/thai-roots/README.md
-
curl -L -o README.md https://huggingface.co/datasets/NaNoBotCo/thai-roots/resolve/main/README.md
9.49 kB
| 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<n<100K | |
| tags: | |
| - thai | |
| - etymology | |
| - pali | |
| - sanskrit | |
| - morphology | |
| - lexicon | |
| - toponymy | |
| - place-names | |
| - chiang-mai | |
| - chiang-rai | |
| - lanna | |
| configs: | |
| - config_name: roots | |
| default: true | |
| data_files: | |
| - split: train | |
| path: data/roots.jsonl | |
| - config_name: words | |
| data_files: | |
| - split: train | |
| path: data/words.jsonl | |
| - config_name: rules | |
| data_files: | |
| - split: train | |
| path: data/rules.jsonl | |
| - config_name: word_index | |
| data_files: | |
| - split: train | |
| path: data/word_index.jsonl | |
| - config_name: places | |
| data_files: | |
| - split: train | |
| path: data/places.jsonl | |
| - config_name: root_places | |
| data_files: | |
| - split: train | |
| path: data/root_places.jsonl | |
| # Thai Roots · รากศัพท์ | |
| A root dictionary of Thai, arranged the way Hans Wehr's Arabic dictionary is: by root, with the words that grew from each one underneath. 257 roots (181 Pali and Sanskrit, 66 native Thai word families, 10 affixes and numerals), 974 words, 12 sound-change rules. Then the dictionary read against 65,534 Thai place names in Chiang Mai and Chiang Rai. | |
| รากศัพท์ไทย 257 ราก ได้แก่ ธาตุบาลี–สันสกฤต 181 วงศ์คำไทยแท้ 66 และอุปสรรค–สังขยา 10 คำที่แตกออกมา 974 คำ พร้อมคำอ่าน IPA คำแปลอังกฤษ ที่มาของคำ และระดับความเชื่อมั่น กฎการเปลี่ยนเสียง 12 ข้อ และชื่อสถานที่ภาษาไทย 65,534 ชื่อในเชียงใหม่และเชียงรายจากมดแดง ตัดคำแล้วโยงเข้ากับราก 40,262 ชื่อมีคำจากรากอย่างน้อยหนึ่งคำ | |
| - The dictionary: https://nanobotco.github.io/thairoots/ · source https://github.com/NaNoBotCo/thairoots | |
| - The Thai Wiktionary layer (whole-word Thai glosses, extended families, 29,164 words): [NaNoBotCo/thai-roots-wiktionary](https://huggingface.co/datasets/NaNoBotCo/thai-roots-wiktionary), CC BY-SA 3.0 | |
| - The places: [NaNoBotCo/mot-dang-chiang-mai-chiang-rai](https://huggingface.co/datasets/NaNoBotCo/mot-dang-chiang-mai-chiang-rai) and https://motdang.net/ | |
| ## What the place names are made of | |
| 40,262 of 65,534 Thai place names (61%) carry at least one word from a Thai Roots family; 31,747 carry one as a whole word. 220 of the 257 roots turn up. Chiang Mai 26,766 of 44,708; Chiang Rai 13,496 of 20,826. Pali and Sanskrit roots appear in 19,592 names, native Thai families in 29,240. | |
| | root | gloss | places | commonest words | | |
| |---|---|---|---| | |
| | บ้าน | house, home, village | 8,121 | บ้าน, บ้านเมือง, บ้านนอก | | |
| | แม่ | mother; female head; principal of a class | 4,857 | แม่, แม่ครัว, แม่เหล็ก | | |
| | วัด | temple-monastery | 3,924 | วัด, เด็กวัด, เข้าวัด | | |
| | เรียน / สอน | learn, study / teach | 2,711 | เรียน, เรียนรู้ | | |
| | √kṛ | do, make | 2,124 | การ, กรรม, อุปกรณ์ | | |
| | น้ำ | water; liquid; essence | 1,878 | น้ำ, น้ำมัน, น้ำแข็ง | | |
| | √vṛdh | grow, increase | 1,325 | เจริญ, พัฒนา, วัฒนา | | |
| | โอสถ / เภสัช | medicine | 1,248 | ยา, เภสัช, โอสถ | | |
| | ทาง | way, path; direction; means | 1,247 | ทาง, ทางการ, ระหว่างทาง | | |
| | √pā | protect; drink | 1,196 | พยาบาล, อนุบาล, บาล | | |
| | √hṛ | take, carry | 1,190 | อาหาร, บริหาร, หาร | | |
| | เมือง | city, country, polity | 1,176 | เมือง, เมืองไทย, เมืองหลวง | | |
| | √ji | conquer | 1,077 | ชัย, ไชย, ชิน | | |
| | √sthā | stand | 850 | สถานี, สถาน, สถาบัน | | |
| | √dhṛ | hold, support | 847 | ธรรม, ธาร, ธารา | <!-- stylecheck: allow — the root's gloss --> | |
| 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/ | |