Moradok Lanna
Developer Notes

Moradok Lanna · Developer Notes

How a non-profit Lanna language site is built — in the open.

Architecture, case studies, a public roadmap and every release of มรดกล้านนา: a Lanna dictionary, a Lanna text editor in the browser, live shared boards and a dictionary-grounded AI teacher, on ordinary shared hosting.

17,318dictionary entries
217releases logged
5case studies
166automated tests

Read the overview →RoadmapAtom feed

Latest releases

Changelog →
  • AI Dictionary lookup for partner apps: a small read-only service lets a trusted partner app look up a word in the Lanna dictionary (up to 8 ranked entries for a word or short phrase, or one entry by number). It returns plain text only: the Thai-letter reading, romanization, Thai equivalent, the dictionary's meaning, approved English when there is one, and the public dictionary link. It never sends Lanna script, never lists the whole dictionary, and words it cannot find are only noted as "missed words" for the editors (the word, never who asked). Technical: signed requests, 300 calls an hour and 30 a minute per partner, an on/off switch per partner and one for the whole service, and logs that keep counts but never the question.
  • Tools Two new tools: "Two New Years" and the New Year blessing card: Two New Years shows one date side by side in the international calendar and the Lanna calendar (Lanna day and month, Chula Sakarat year, holy days, Songkran days) and marks where the Lanna year changes; every Lanna value comes from our own calendar engine, so it matches the calendar pages. The blessing card turns the three blessings yu di mi hang, yu di mi hang and yu di mi suk into a picture card in Lanna script taken from the dictionary, with four drawn backgrounds, an optional name that stays in the browser, and square or story size, saved as PNG or shared. Thai and English. Blog widgets can now save images and use the share sheet.
  • Boards Show a board inside another site: a public board can now be shown as a small card (first lines, then "read more") on main.plaazaa.com, with a link back to the full board. Private, shared or hidden boards never show. Also added a standard oEmbed link so other apps can find the board's title and picture.
  • Boards Cleaner link previews for boards: when a board is shared on Facebook, LINE or other apps, the preview text now uses only the Thai and English parts of the board. Lanna script lines, which need the Lanna font to read, are left out of the text (the preview picture still shows them correctly), and a board written only in Lanna script gets a short descriptive line instead.
  • Blog The first six parts of the "Fact or Tale" series are now linked together, in Thai and English: every article (Ma Mia, Wang Bua Ban, Sao Khruea Fa, Wiang Nong Lom, Wiang Kum Kam, Lilit Phra Lo) ends with the same series box listing all six parts with a one-line summary each, and related parts link to each other in the text. The shared fact_or_tale tool now holds six story sets. Technical: one shared series box per post (current part unlinked) plus a few in-text sibling links; no change to slugs or widgets.
  • Widgets Fact or Tale tool loads faster: each article now downloads only its own story set instead of every set in the series, so an embed is about 70 to 120 KB instead of 355 KB (and stays that size as the series grows). Technical: the widget host serves one set per ?set= from the same built file; links and parameters are unchanged.
  • Blog New article and tool: Wang Bua Ban, what's real, what's told, what's tale, in Thai and English: /วังบัวบาน/ · /en/wang-bua-ban-fact-and-tale/. Part of the Fact or Tale series: the pool above Huai Kaeo Falls on Doi Suthep and the legend of a young teacher, read from six tellers, the song, the 1972 film and the family's own account, with a new interactive tool wang_buaban_map (a story map from the city to the falls that lights up the places each teller names, a "who is the man?" game across the tellings, and the place names read word by word in Lanna script) and a new fact_or_tale story set.