Module:mkh-mvi

---Lexicographic tools for Middle Vietnamese language text. local lang = require("Module:languages").getByCode("mkh-mvi")

local p = {}

---Middle Vietnamese letters. p.letters = "aAàÀảẢãÃáÁạẠăĂằẰẳẲẵẴắẮặẶâÂầẦẩẨẫẪấẤậẬbBꞗcCdDđĐeEèÈẻẺẽẼéÉẹẸĕêÊềỀểỂễỄếẾệỆgGhHiIìÌỉỈĩĨíÍịỊïjJkKlLmMnNoOòÒỏỎõÕóÓọỌŏôÔồỒổỔỗỖốỐộỘơƠờỜởỞỡỠớỚợỢpPqQrRsStTuUùÙủỦũŨúÚụỤüŭưƯừỪửỬữỮứỨựỰvVwWxXyYỳỲỷỶỹỸýÝỵỴ"

---Returns the categories indicated by the given wikitext. function p.classifierCategories(frame) local src = frame.args[1] local classifiers = {} for classifier in mw.ustring.gmatch(mw.ustring.gsub(src, "<[^>]->", ""), "[" .. p.letters .. "᷄]+") do		if classifier ~= "l" and classifier ~= "mkh-mvi" and classifier ~= "Middle Vietnamese" then local cat = mw.ustring.format("",				classifier) table.insert(classifiers, cat) end end return table.concat(classifiers) end

return p