Module:qhv-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 5: Line 5:


local m_utils = require("Module:utilities")
local m_utils = require("Module:utilities")
local m_pron = require("Module:qhv-pron")
local alldata = require('Module:qhv-noun/data')
local alldata = require('Module:qhv-noun/data')
local PAGENAME = mw.title.getCurrentTitle().text
local PAGENAME = mw.title.getCurrentTitle().text
Line 35: Line 36:
local decl = number .. "-" .. class
local decl = number .. "-" .. class
return decl, {sub(word, 1, -(#endings_reverse[decl] + 1))}
return decl, {sub(word, 1, -(#endings_reverse[decl] + 1))}
elseif find(word, "[aāiu]?[aāeēoōīūȳ]") and m_pron.write_stress(word, true) == 1 then
return "3-s-h", {sub(word, 1, -2)}
else
else
for ending, decl in pairs(endings) do
for ending, decl in pairs(endings) do

Navigation menu