Module:form of/lang-data/sw

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This module contains language-specific form-of data (tags, shortcuts, base lemma params. etc.) for Swahili.

NOTE: If you add a new language-specific module, you must add the language code to the list at the top of Module:form of in order for the module to be recognized.


--[=[
This module contains lang-specific tags for Swahili.
]=]

local m_form_of = require("Module:form of")

local APPENDIX = m_form_of.APPENDIX
local WP = m_form_of.WP
local WIKT = m_form_of.WIKT

local tags = {}
local shortcuts = {}


----------------------- Tense/aspect -----------------------

tags["gnomic"] = {
	"tense-aspect",
	"w:gnomic aspect",
}

tags["consecutive"] = {
	"tense-aspect",
	"w:Swahili grammar#Consecutive",
}

tags["situational"] = {
	"tense-aspect",
	"w:Swahili grammar#Situational",
}

----------------------- Inflectional class -----------------------

-- swahili m-wa class (class 1/2)
tags["m-wa class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#M-wa_class",
	"m-wa",
}

-- swahili m-mi class (class 3/4)
tags["m-mi class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#M-mi_class",
	"m-mi",
}

-- swahili ji-ma class (class 5/6)
tags["ji-ma class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ma_class",
	"ji-ma",
}

-- swahili ki-vi class (class 7/8)
tags["ki-vi class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ki-vi_class",
	"ki-vi",
}

-- swahili n-n class (class 9/10)
tags["n class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#N_class",
	"n-n",
}

-- swahili u-n/u-u class (class 11/14)
tags["u class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#U_class",
	{"u-n", "u-u"},
}

-- swahili ku class (class 15)
tags["ku class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ku_class",
	"ku",
}

-- swahili pa locative class (class 16)
tags["pa locative class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Pa_locative_class",
	"pa",
}

-- swahili ku locative class (class 17)
tags["ku locative class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ku_locative_class",
	"ku-loc",
}

-- swahili mu locative class (class 18)
tags["mu locative class subject inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Mu_locative_class",
	"mu",
}

-- swahili m-wa class (class 1/2)
tags["m-wa class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#M-wa_class",
	"m-wa_obj",
}

-- swahili m-mi class (class 3/4)
tags["m-mi class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#M-mi_class",
	"m-mi_obj",
}

-- swahili ji-ma class (class 5/6)
tags["ji-ma class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ma_class",
	"ji-ma_obj",
}

-- swahili ki-vi class (class 7/8)
tags["ki-vi class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ki-vi_class",
	"ki-vi_obj",
}

-- swahili n-n class (class 9/10)
tags["n class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#N_class",
	"n-n_obj",
}

-- swahili u-n/u-u class (class 11/14)
tags["u class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#U_class",
	{"u-n_obj", "u-u_obj"},
}

-- swahili ku class (class 15)
tags["ku class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ku_class",
	"ku_obj",
}

-- swahili pa locative class (class 16)
tags["pa locative class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Pa_locative_class",
	"pa_obj",
}

-- swahili ku locative class (class 17)
tags["ku locative class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ku_locative_class",
	"ku-loc_obj",
}

-- swahili mu locative class (class 18)
tags["mu locative class object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Mu_locative_class",
	"mu_obj",
}

-- swahili m-wa class (class 1/2)
tags["m-wa class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#M-wa_class",
	"m-wa_rel",
}

-- swahili m-mi class (class 3/4)
tags["m-mi class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#M-mi_class",
	"m-mi_rel",
}

-- swahili ji-ma class (class 5/6)
tags["ji-ma class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ma_class",
	"ji-ma_rel",
}

-- swahili ki-vi class (class 7/8)
tags["ki-vi class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ki-vi_class",
	"ki-vi_rel",
}

-- swahili n-n class (class 9/10)
tags["n class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#N_class",
	"n-n_rel",
}

-- swahili u-n/u-u class (class 11/14)
tags["u class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#U_class",
	{"u-n_rel", "u-u_rel"},
}

-- swahili ku class (class 15)
tags["ku class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ku_class",
	"ku_rel",
}

-- swahili pa locative class (class 16)
tags["pa locative class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Pa_locative_class",
	"pa_rel",
}

-- swahili ku locative class (class 17)
tags["ku locative class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Ku_locative_class",
	"ku-loc_rel",
}

-- swahili mu locative class (class 18)
tags["mu locative class relative object inflected"] = {
	"grammar",
	"wikt:Appendix:Swahili_noun_classes#Mu_locative_class",
	"mu_rel",
}

----------------------- Create the shortcuts list -----------------------

m_form_of.finalize_tag_data(tags, shortcuts)

return {tags = tags, shortcuts = shortcuts}