10,794
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 1,900: | Line 1,900: | ||
IPA = mw.ustring.gsub(IPA, "^".. V_long_regex, "") -- delete long vowel | IPA = mw.ustring.gsub(IPA, "^".. V_long_regex, "") -- delete long vowel | ||
IPA = mw.ustring.gsub(IPA, "^[" .. C_regex .. "]+", "") -- delete consonant cluster | IPA = mw.ustring.gsub(IPA, "^[" .. C_regex .. "]+", "") -- delete consonant cluster | ||
mw.log(IPA) | |||
if mw.ustring.find(IPA, "^[uyiɔœɛɤa][" .. C_regex .. "]*$") or mw.ustring.find(IPA, "^" .. V_long_regex .. "[" .. C_regex .. "]*$") or | if mw.ustring.find(IPA, "^[uyiɔœɛɤa][" .. C_regex .. "]*$") or mw.ustring.find(IPA, "^" .. V_long_regex .. "[" .. C_regex .. "]*$") or | ||
mw.ustring.find(IPA, "^" .. V_long_regex .. "[" .. C_regex .. "]+[uyiɔœɛɤa][" .. C_regex .. "]*$") or (mw.ustring.find(IPA, "^".. V_long_regex) and mw.ustring.find(IPA, V_short_regex) == nil and mw.ustring.find(IPA, "[uyiɔœɛɤa][" .. C_regex .. "]*$") == nil) | mw.ustring.find(IPA, "^" .. V_long_regex .. "[" .. C_regex .. "]+[uyiɔœɛɤa][" .. C_regex .. "]*$") or (mw.ustring.find(IPA, "^".. V_long_regex) and mw.ustring.find(IPA, "[" .. C_regex .. "]" .. V_short_regex) == nil and mw.ustring.find(IPA, "[uyiɔœɛɤa][" .. C_regex .. "]*$") == nil) | ||
then | then | ||
return nil | return nil | ||
Line 1,927: | Line 1,928: | ||
else return nil end | else return nil end | ||
end | end | ||
-- mw.logObject(p.get_weak_rhyme("ˈliːaijaːrs")) | |||
function export.generate(frame) | function export.generate(frame) |