Module:trih-pro-conj: Difference between revisions

Nehster9 (talk | contribs)
No edit summary
Nehster9 (talk | contribs)
No edit summary
Line 22: Line 22:
     imperf_1p = "eisa",
     imperf_1p = "eisa",
     imperf_2p = "ĕisa",
     imperf_2p = "ĕisa",
     imperf_3p = "ebta",
     imperf_3p = "ekta",


     past_1s = "ir",
     past_1s = "ir",
Line 112: Line 112:
     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 194: Line 191:
     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