Module:trih-pro-conj: Difference between revisions

Nehster9 (talk | contribs)
Created page with "-- Lumbaieric verb module local p = {} ---------------------------------------------------------------- -- ENDINGS ---------------------------------------------------------------- local endings = { pres_part = "nō", past_part = "ar", pres_1s = "a", pres_2s = "at", pres_3s = "ahþ", pres_1p = "a", pres_2p = "ata", pres_3p = "ahþa", imperf_1s = "īz", imperf_2s = "iz", imperf_3s = "enþ", imperf_1p = "īza", imperf_..."
 
Nehster9 (talk | contribs)
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
-- Lumbaieric verb module
-- Proto-Trihimic verb module
local p = {}
local p = {}


Line 7: Line 7:


local endings = {
local endings = {
     pres_part = "",
     pres_part = "",
     past_part = "ar",
     past_part = "or",


     pres_1s = "a",
     pres_1s = "a",
     pres_2s = "at",
     pres_2s = "ad",
     pres_3s = "ahþ",
     pres_3s = "kt",
     pres_1p = "a",
     pres_1p = "aka",
     pres_2p = "ata",
     pres_2p = "ada",
     pres_3p = "ahþa",
     pres_3p = "kta",


     imperf_1s = "īz",
     imperf_1s = "eis",
     imperf_2s = "iz",
     imperf_2s = "ĕis",
     imperf_3s = "enþ",
     imperf_3s = "ent",
     imperf_1p = "īza",
     imperf_1p = "eisa",
     imperf_2p = "iza",
     imperf_2p = "ĕisa",
     imperf_3p = "enþa",
     imperf_3p = "ekta",


     past_1s = "ir",
     past_1s = "ir",
     past_2s = "int",
     past_2s = "ind",
     past_3s = "",
     past_3s = "it",
     past_1p = "ira",
     past_1p = "ira",
     past_2p = "inta",
     past_2p = "inda",
     past_3p = "iþa",
     past_3p = "ita",


     fut_1s = "ōna",
     fut_1s = "āna",
     fut_2s = "ōnt",
     fut_2s = "ānad",
     fut_3s = "ōnahþ",
     fut_3s = "ānakt",
     fut_1p = "ōnha",
     fut_1p = "ānaka",
     fut_2p = "ōnta",
     fut_2p = "ānada",
     fut_3p = "ōnahþa",
     fut_3p = "ānakta",


     Spres_1s = "er",
     Spres_1s = "er",
     Spres_2s = "īt",
     Spres_2s = "īd",
     Spres_3s = "jōt",
     Spres_3s = "iōd",
     Spres_1p = "era",
     Spres_1p = "era",
     Spres_2p = "īta",
     Spres_2p = "īda",
     Spres_3p = "jōta",
     Spres_3p = "iōda",


     Simperf_1s = "au",
     Simperf_1s = "au",
     Simperf_2s = "ōfla",
     Simperf_2s = "ōplą",
     Simperf_3s = "in",
     Simperf_3s = "in",
     Simperf_1p = "awa",
     Simperf_1p = "awa",
     Simperf_2p = "ōfla",
     Simperf_2p = "ōpla",
     Simperf_3p = "ina",
     Simperf_3p = "ina",
   
    Opres_1s = "ŏid",
    Opres_2s = "anas",
    Opres_3s = "ăudi",
    Opres_1p = "ŏida",
    Opres_2p = "anasa",
    Opres_3p = "ăudia",
    Oimperf_1s = "ūd",
    Oimperf_2s = "oll",
    Oimperf_3s = "ŏt",
    Oimperf_1p = "ūda",
    Oimperf_2p = "olla",
    Oimperf_3p = "ŏta",


     IMP_2s = "s",
     IMP_2s = "s",
     IMP_3s = "erþ",
     IMP_3s = "ert",
     IMP_2p = "sa",
     IMP_2p = "sa",
     IMP_3p = "erþa",
     IMP_3p = "erta",
}
}


Line 63: Line 77:


local irregulars = {
local irregulars = {
["berijana"] = {
[""] = {
fut_1s = "skrōgijōna",
    fut_2s = "skrōgijōnt",
    fut_3s = "skrōgijōnahþ",
    fut_1p = "skrōgijōnha",
    fut_2p = "skrōgijōnta",
    fut_3p = "skrōgijōnahþa",
   
    past_1s = "pākīr",
    past_2s = "pākīnt",
    past_3s = "pākīþ",
    past_1p = "pākīra",
    past_2p = "pākīnta",
    past_3p = "pākīþa",
    past_part = "pākijar",
}
}
}
}
Line 86: Line 87:


local function get_stem(title)
local function get_stem(title)
     return mw.ustring.gsub(title, "ana$", "")
     return mw.ustring.gsub(title, "áną$", "")
end
end


Line 98: Line 99:


     return "<div style='text-align:center;'>"
     return "<div style='text-align:center;'>"
         .. "[[Contionary:" .. form .. "|" .. form .. "]]"
         .. "" .. form .. ""
         .. "</div>"
         .. "</div>"
end
end
Line 125: Line 126:
     form = mw.ustring.gsub(form, "hh", "h")
     form = mw.ustring.gsub(form, "hh", "h")
      
      
     -- double j is simplified to single j
     -- double i is simplified to single long i
     form = mw.ustring.gsub(form, "jj", "j")
     form = mw.ustring.gsub(form, "[iī][iī]", "ī")
   
    -- <iji> is simplified to <ī>
    form = mw.ustring.gsub(form, "ij[iī]", "ī")


     return form
     return form
Line 154: Line 152:
      
      
     e = {
     e = {
         past = "ā",
         past = "",
         future = "i",
         future = "i",
    },
   
    o = {
        past = "ē",
        future = "ā",
     },
     },
}
}


local strong_categories = {
local strong_categories = {
     a = "Lumbaieric class 1 strong verbs",
     a = "Proto-Trihimic class 1 strong verbs",
     e = "Lumbaieric class 2 strong verbs",
     e = "Proto-Trihimic class 2 strong verbs",
    o = "Proto-Trihimic class 3 strong verbs",
}
}


Line 201: Line 205:
     if grade then
     if grade then
         if rootPart then
         if rootPart then
             rootPart = mw.ustring.gsub(rootPart, "a", grade)
             rootPart = mw.ustring.gsub(rootPart, strong, grade)
             currentStem = rootPart .. suffixPart
             currentStem = rootPart .. suffixPart
         else
         else
             currentStem = mw.ustring.gsub(currentStem, "a", grade)
             currentStem = mw.ustring.gsub(currentStem, strong, grade)
         end
         end
     end
     end
Line 265: Line 269:
     .. '! rowspan="5" style="background:#bbd0fa;" | Indicative\n'
     .. '! rowspan="5" style="background:#bbd0fa;" | Indicative\n'
     .. '! \n'
     .. '! \n'
     .. '! ' .. make_pronoun("")
     .. '! ' .. make_pronoun("wey")
     .. ' !! ' .. make_pronoun("þifuz")
     .. ' !! ' .. make_pronoun("tífus")
     .. ' !! ' .. make_pronoun("wēs/liu/heu")
     .. ' !! ' .. make_pronoun("wēs/liw/kew")
     .. ' !! ' .. make_pronoun("wīa")
     .. ' !! ' .. make_pronoun("wéya")
     .. ' !! ' .. make_pronoun("þifuza")
     .. ' !! ' .. make_pronoun("tifúsa")
     .. ' !! ' .. make_pronoun("wēza")
     .. ' !! ' .. make_pronoun("wēsa")
     .. '\n'
     .. '\n'
     )
     )
Line 328: Line 332:
     .. '! rowspan="3" style="background:#b3da9d;" | Subjunctive\n'
     .. '! rowspan="3" style="background:#b3da9d;" | Subjunctive\n'
     .. '! \n'
     .. '! \n'
     .. '! ' .. make_pronoun("")
     .. '! ' .. make_pronoun("wey")
     .. ' !! ' .. make_pronoun("þifuz")
     .. ' !! ' .. make_pronoun("tífus")
     .. ' !! ' .. make_pronoun("wēs/liu/heu")
     .. ' !! ' .. make_pronoun("wēs/liw/kew")
     .. ' !! ' .. make_pronoun("wīa")
     .. ' !! ' .. make_pronoun("wéya")
     .. ' !! ' .. make_pronoun("þifuza")
     .. ' !! ' .. make_pronoun("tifúsa")
     .. ' !! ' .. make_pronoun("wēza")
     .. ' !! ' .. make_pronoun("wēsa")
     .. '\n'
     .. '\n'
     )
     )
Line 358: Line 362:
     .. ' || ' .. make_cell(forms.Simperf_2p)
     .. ' || ' .. make_cell(forms.Simperf_2p)
     .. ' || ' .. make_cell(forms.Simperf_3p)
     .. ' || ' .. make_cell(forms.Simperf_3p)
    .. '\n'
    .. '|-\n'
    .. '| colspan="8" style="background:#cfcfcf; height:6px; padding:0;" | \n'
    )
   
    table.insert(t,
    '|-\n'
    .. '! rowspan="3" style="background:#9cd9c1;" | Optative\n'
    .. '! \n'
    .. '! ' .. make_pronoun("wey")
    .. ' !! ' .. make_pronoun("tífus")
    .. ' !! ' .. make_pronoun("wēs/liw/kew")
    .. ' !! ' .. make_pronoun("wéya")
    .. ' !! ' .. make_pronoun("tifúsa")
    .. ' !! ' .. make_pronoun("wēsa")
    .. '\n'
    )
    table.insert(t,
    '|-\n'
    .. '! Present\n'
    .. '| ' .. make_cell(forms.Opres_1s)
    .. ' || ' .. make_cell(forms.Opres_2s)
    .. ' || ' .. make_cell(forms.Opres_3s)
    .. ' || ' .. make_cell(forms.Opres_1p)
    .. ' || ' .. make_cell(forms.Opres_2p)
    .. ' || ' .. make_cell(forms.Opres_3p)
    .. '\n'
    )
    table.insert(t,
    '|-\n'
    .. '! Imperfect\n'
    .. '| ' .. make_cell(forms.Oimperf_1s)
    .. ' || ' .. make_cell(forms.Oimperf_2s)
    .. ' || ' .. make_cell(forms.Oimperf_3s)
    .. ' || ' .. make_cell(forms.Oimperf_1p)
    .. ' || ' .. make_cell(forms.Oimperf_2p)
    .. ' || ' .. make_cell(forms.Oimperf_3p)
     .. '\n'
     .. '\n'
     .. '|-\n'
     .. '|-\n'
Line 368: Line 411:
     .. '! \n'
     .. '! \n'
     .. '! —'
     .. '! —'
     .. ' !! ' .. make_pronoun("þifuz")
     .. ' !! ' .. make_pronoun("tífus")
     .. ' !! ' .. make_pronoun("wēs/liu/heu")
     .. ' !! ' .. make_pronoun("wēs/liw/kew")
     .. ' !! —'
     .. ' !! —'
     .. ' !! ' .. make_pronoun("þifuza")
     .. ' !! ' .. make_pronoun("tifúsa")
     .. ' !! ' .. make_pronoun("wēza")
     .. ' !! ' .. make_pronoun("wēsa")
     .. '\n'
     .. '\n'
     )
     )