Module:ml-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:ml-IPA/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
23 of 25 tests failed. (refresh)
Text | Expected | Actual | Comments | |
---|---|---|---|---|
അമ്മ (amma) | ɐm.mɐ | ɐmmɐ | ||
അച്ഛൻ (acchaṉ) | ɐt͡ʃ.t͡ʃ(ʰ)ɐn | ɐt͡ʃt͡ʃ(ʰ)ɐn | ||
മീൻ (mīṉ) | miːn | miːn | ||
ഉത്സവം (utsavaṁ) | ut̪.sɐ.ʋɐm, ul.sɐ.ʋɐm | ut̪sɐʋɐm | in /{t̪, d̪}{k, g, p, b, m, s}/, the /t̪, d̪/ may also be pronounced as [l] | |
പാഠം (pāṭhaṁ) | paː.ʈʰɐm, paː.ɖ(ʱ)ɐm | paːʈ(ʰ)ɐm | aspiration is not universal, medial voiceless aspirated may even be voiced | |
ശുണ്ഠി (śuṇṭhi) | ʃuɳ.ʈʰi, ʃuɳ.ɖ(ʱ)i | ʃuɳɖ(ʰ)i | voiceless aspirates after a nasal | |
ദുഃഖം (duḥkhaṁ) | d̪uk.k(ʰ)ɐm | d̪ukk(ʰ)ɐm | visarga gemination | |
ശ്രദ്ധ (śraddha) | ʃrɐd̪.d̪(ʱ)ɐ, srɐd̪.d̪(ʱ)ɐ | ʃrɐd̪d̪(ʱ)ɐ | /ʃ{r, l}/ is sometimes pronounced with [s] especially for the former | |
മുഹറ്രം (muhaṟraṁ) | mu.har.rɐm | muhɐttɐm | currently <r̠r̠ റ്റ> is made /tt/ but it turns <rr rr̠ r̠r> (actual way of representing /rr/) too to /tt/ | |
പംക്തി (paṅkti) | pɐŋk.t̪i | pɐŋkt̪i | ||
സംജ്ഞ (sañjña) | /sɐɲd͡ʒɲɐ/, [sɐɲɟɲɐ] | sɐnd͡ʒɲɐ | ||
കടുംകൈ (kaṭuṅkai) | kɐ.ɖuŋ.ɡɐi̯ | kɐɖuŋkɐi̯ | voicing from anusvara | |
റ്റന്റന്ററ്റ (ṟṟanṟanṟaṟṟa) | tɐn.tɐn.tɐt.tɐ | ttɐntɐn്rɐttɐ | no initial geminates, and both common ways of typing nr though the latter is wrong, | |
അൻവൻ (aṉvaṉ) | ɐn.ʋɐn | ɐnʋɐn | ||
ഊർജ്ജം (ūṟjjaṁ) | uːr(d͡ʒ).d͡ʒɐm | uːrd͡ʒd͡ʒɐm | rCC is not always doubled | |
എആംൻപംൽ (eāṁṉpaṁl) | e.aːnn.bɐml | eaːm̃npɐm̃l | anusvara + chillu | |
അംലംന (aṁlanna) | ɐm.lɐn.nɐ | ɐmlɐnnɐ | anusvara + consonant | |
നൃൽ (nr̥l) | n̪ril | ntil | currently /n̪r/ is made /nd/ to display ന്റ, ൻ്റ <nr, ṉṟ> /nd/ but it turns നൃ <nr̥> too to /ndi/. | |
നൗൽ (naul) | n̪ɐu̯l | n̪ɐu̯l | ||
ഉ്തു്തൂ്തു് | ə̆.d̪ə̆.d̪əː.d̪ə̆ | ə̆d̪ə̆d̪əːt̪ə̆ə̆ | ||
അഁത഻തൌ | ɐ̃t̪.t̪ɐu̯ | ɐ̃t̪ɐd̪ɐu̯ | ||
അഀത഼തൗ | ɐn̪t̪.t̪ɐu̯ | ɐm̃t̪ɐ഼t̪ɐu̯ | ||
അഁത഻ | ɐ̃t̪ | ɐ̃t̪ɐ | ||
ഔത഼ | ɐu̯t̪ | au̯d̪ɐ഼ | ||
പത്ത് അടി (patt aṭi) | pɐt̪.t̪‿ɐ.ɖi | pɐt̪t̪ə̆ ɐɖi | ŭ elided before vowels |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:ml-IPA")
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
function tests:check_output(term, expected, comment)
self:equals(
m_IPA.link(term),
tag_IPA(m_IPA.to_IPA(term)[1]),
tag_IPA(expected),
{ comment = comment }
)
end
function tests:test_all()
examples = {
{ "അമ്മ", "ɐm.mɐ"},
{ "അച്ഛൻ", "ɐt͡ʃ.t͡ʃ(ʰ)ɐn"},
{ "മീൻ", "miːn"},
{ "ഉത്സവം", "ut̪.sɐ.ʋɐm, ul.sɐ.ʋɐm", "in /{t̪, d̪}{k, g, p, b, m, s}/, the /t̪, d̪/ may also be pronounced as [l]"},
{ "പാഠം", "paː.ʈʰɐm, paː.ɖ(ʱ)ɐm", "aspiration is not universal, medial voiceless aspirated may even be voiced"},
{ "ശുണ്ഠി", "ʃuɳ.ʈʰi, ʃuɳ.ɖ(ʱ)i", "voiceless aspirates after a nasal"},
{ "ദുഃഖം", "d̪uk.k(ʰ)ɐm", "visarga gemination"},
{ "ശ്രദ്ധ", "ʃrɐd̪.d̪(ʱ)ɐ, srɐd̪.d̪(ʱ)ɐ", "/ʃ{r, l}/ is sometimes pronounced with [s] especially for the former"},
{ "മുഹറ്രം", "mu.har.rɐm", "currently <r̠r̠ റ്റ> is made /tt/ but it turns <rr rr̠ r̠r> (actual way of representing /rr/) too to /tt/"},
{ "പംക്തി", "pɐŋk.t̪i"},
{ "സംജ്ഞ", "/sɐɲd͡ʒɲɐ/, [sɐɲɟɲɐ]"},
{ "കടുംകൈ", "kɐ.ɖuŋ.ɡɐi̯", "voicing from anusvara"},
{ "റ്റന്റൻ്ററ്റ", "tɐn.tɐn.tɐt.tɐ", "no initial geminates, and both common ways of typing nr though the latter is wrong,"},
{ "അൻവൻ", "ɐn.ʋɐn"},
{ "ഊർജ്ജം", "uːr(d͡ʒ).d͡ʒɐm", "rCC is not always doubled"},
{ "എആംൻപംൽ", "e.aːnn.bɐml", "anusvara + chillu"},
{ "അംലംന", "ɐm.lɐn.nɐ", "anusvara + consonant"},
{ "നൃൽ", "n̪ril", "currently /n̪r/ is made /nd/ to display ന്റ, ൻ്റ <nr, ṉṟ> /nd/ but it turns നൃ <nr̥> too to /ndi/."},
{ "നൗൽ", "n̪ɐu̯l"},
{ "ഉ്തു്തൂ്തു്", "ə̆.d̪ə̆.d̪əː.d̪ə̆"},
{ "അഁത഻തൌ", "ɐ̃t̪.t̪ɐu̯"},
{ "അഀത഼തൗ", "ɐn̪t̪.t̪ɐu̯"},
{ "അഁത഻", "ɐ̃t̪"},
{ "ഔത഼", "ɐu̯t̪"},
{ "പത്ത് അടി", "pɐt̪.t̪‿ɐ.ɖi", "ŭ elided before vowels"},
}
--[[ Copy the following to add more examples:
{ "", "" },
]]
tests:iterate(examples, "check_output")
end
return tests