Module:pollasena-roots: Difference between revisions
No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
local wasc_suffixes = m_table.listToSet { | local wasc_suffixes = m_table.listToSet { | ||
"ati", "cosc", "e", "ekan", "i", "ila", | "-ati", "-cosc", "-e", "-ekan", "-i", "-ila", | ||
"kan", "la", "osc", "otl", "que", "scati", "si" | "-kan", "-la", "-osc", "-otl", "-que", "-scati", "-si" | ||
} | } | ||
| Line 219: | Line 219: | ||
cat_term = "*" .. gsub(cat_term, "^*+", "") -- ensure only one asterisk | cat_term = "*" .. gsub(cat_term, "^*+", "") -- ensure only one asterisk | ||
if code == "wasc" then -- Wascotl root and suffix handling | if code == "wasc" then -- Wascotl root and suffix handling | ||
local suffix = match(cat_term, "^*[%w']+%- | local suffix = match(cat_term, "^*[%w']+(%-[%w']+)$") | ||
if wasc_suffixes[suffix] then | if wasc_suffixes[suffix] then | ||
cat_term = gsub(cat_term, suffix, "") | cat_term = gsub(cat_term, suffix, "-") | ||
end | end | ||
end | end | ||