This is a private module sandbox of ObnoxiousCoder, for their own experimentation. Items in this module may be added and removed at ObnoxiousCoder's discretion; do not rely on this module's stability.
local tests = require("Module:UnitTests")
local m_IPA = require("Module:akk-IPA")
local lang = require("Module:languages").getByCode("akk")
local function tag_IPA(IPA) return '<span class="IPA">' .. IPA .. '</span>' end
local options = {display = tag_IPA}
function tests:check_pron(word, expected)
self:equals(
require("Module:links").full_link({term = word, lang = lang}, nil, true), m_IPA.pronunciation_phonemic(word), expected, options
)
end
function tests:test_pron()
local examples = {
{"abnum", "ˈab.num"},
{"abum", "ˈa.bum"},
{"adi", "ˈa.di"},
{"agammum", "aˈɡam.mum"},
{"akalum", "ˈa.ka.lum"},
{"akālum", "aˈkaː.lum"},
{"alaktum", "aˈlak.tum"},
{"alpum", "ˈal.pum"},
{"alākum", "aˈlaː.kum"},
{"amtum", "ˈam.tum"},
{"amurdinnum", "a.murˈdin.num"},
{"anāku", "aˈnaː.ku"},
{"aplum", "ˈap.lum"},
{"aptum", "ˈap.tum"},
{"arārum", "aˈraː.rum"},
{"atta", "ˈat.ta"},
{"atti", "ˈat.ti"},
{"-atum", "-a.tum"},
{"awīltum", "aˈwiːl.tum"},
{"awīlum", "aˈwiː.lum"},
{"aššatum", "ˈaʃ.ʃa.tum"},
{"aḫum", "ˈa.χum"},
{"aḫûm", "aˈχuːm"},
{"aḫātum", "aˈχaː.tum"},
{"birkum", "ˈbir.kum"},
{"Bābilim", "ˈbaː.bi.lim"},
{"bābum", "ˈbaː.bum"},
{"bēltum", "ˈbeːl.tum"},
{"bēlum", "ˈbeː.lum"},
{"bītum", "ˈbiː.tum"},
{"damāqum", "daˈmaː.qum"},
{"danānum", "daˈnaː.num"},
{"dayyānum", "dajˈjaː.num"},
{"dārum", "ˈdaː.rum"},
{"eleppum", "eˈlep.pum"},
{"elēpum", "eˈleː.pum"},
{"emūqum", "eˈmuː.qum"},
{"eperum", "ˈe.pe.rum"},
{"erbum", "ˈer.bum"},
{"ergilum", "ˈer.ɡi.lum"},
{"erṣetum", "ˈer.sˤe.tum"},
{"gišimmarum", "ɡiˈʃim.ma.rum"},
{"idum", "ˈi.dum"},
{"ilkum", "ˈil.kum"},
{"iltum", "ˈil.tum"},
{"ilum", "ˈi.lum"},
{"imērum", "iˈmeː.rum"},
{"ina", "ˈi.na"},
{"itti", "ˈit.ti"},
{"išarum", "ˈi.ʃa.rum"},
{"išdum", "ˈiʃ.dum"},
{"Ištar", "ˈiʃ.tar"},
{"ištēn", "iʃˈteːn"},
{"iṣum", "ˈi.sˤum"},
{"kakkabum", "ˈkak.ka.bum"},
{"kalbum", "ˈkal.bum"},
{"kankum", "ˈkan.kum"},
{"kanākum", "kaˈnaː.kum"},
{"kanīkum", "kaˈniː.kum"},
{"kappum", "ˈkap.pum"},
{"kaspum", "ˈkas.pum"},
{"kašādum", "kaˈʃaː.dum"},
{"kirûm", "kiˈruːm"},
{"kunukkum", "kuˈnuk.kum"},
{"kāsum", "ˈkaː.sum"},
{"lamassum", "laˈmas.sum"},
{"libbum", "ˈlib.bum"},
{"lûm", "ˈluːm"},
{"lā", "laː"},
{"līmum", "ˈliː.mum"},
{"lītum", "ˈliː.tum"},
{"marrum", "ˈmar.rum"},
{"mazzaztum", "mazˈzaz.tum"},
{"midrum", "ˈmid.rum"},
{"musukkannum", "mu.sukˈkan.num"},
{"mutum", "ˈmu.tum"},
{"muškēnum", "muʃˈkeː.num"},
{"mû", "ˈmuː"},
{"mārtum", "ˈmaːr.tum"},
{"mārum", "ˈmaː.rum"},
{"mātum", "ˈmaː.tum"},
{"mēsum", "ˈmeː.sum"},
{"nadānum", "naˈdaː.num"},
{"nagbum", "ˈnaɡ.bum"},
{"nārum", "ˈnaː.rum"},
{"nīšum", "ˈniː.ʃum"},
{"paššūrum", "paʃˈʃuː.rum"},
{"pûm", "ˈpuːm"},
{"pān šattim", "ˈpaːn ˈʃat.tim"},
{"pānum", "ˈpaː.num"},
{"qabûm", "qaˈbuːm"},
{"qanûm", "qaˈnuːm"},
{"qaqqadum", "ˈqaq.qa.dum"},
{"qaqqarum", "ˈqaq.qa.rum"},
{"qarnum", "ˈqar.num"},
{"rēšum", "ˈreː.ʃum"},
{"sinništum", "sinˈniʃ.tum"},
{"sīḫum", "ˈsiː.χum"},
{"u", "u"},
{"ugārum", "uˈɡaː.rum"},
{"ummum", "ˈum.mum"},
{"Urarṭu", "uˈrar.tˤu"},
{"urrum", "ˈur.rum"},
{"uznum", "ˈuz.num"},
{"waklum", "ˈwak.lum"},
{"walādum", "waˈlaː.dum"},
{"wardum", "ˈwar.dum"},
{"warāqum", "waˈraː.qum"},
{"warḫum", "ˈwar.χum"},
{"yâti", "ˈjaː.ti"},
{"zikarum", "ˈzi.ka.rum"},
{"zikrum", "ˈzik.rum"},
{"ziqqurratum", "ziqˈqur.ra.tum"},
{"ālikum", "ˈaː.li.kum"},
{"ālum", "ˈaː.lum"},
{"ēkallum", "eːˈkal.lum"},
{"ēnum", "ˈeː.num"},
{"-ī", "-iː"},
{"īkum", "ˈiː.kum"},
{"īnum", "ˈiː.num"},
{"ša", "ʃa"},
{"šamaššammum", "ʃa.maʃˈʃam.mum"},
{"šammi Šamaš", "ˈʃam.mi ˈʃa.maʃ"},
{"šammum", "ˈʃam.mum"},
{"šamnum", "ˈʃam.num"},
{"šamû", "ʃaˈmuː"},
{"šamšum", "ˈʃam.ʃum"},
{"šarqum", "ˈʃar.qum"},
{"šarratum", "ˈʃar.ra.tum"},
{"šarrum", "ˈʃar.rum"},
{"Šarrum-kīn", "ʃar.rum-ˈkiːn"},
{"šarrāqum", "ʃarˈraː.qum"},
{"šarāqum", "ʃaˈraː.qum"},
{"šattum", "ˈʃat.tum"},
{"šinnum", "ˈʃin.num"},
{"šumma", "ˈʃum.ma"},
{"šumum", "ˈʃu.mum"},
{"šārtum", "ˈʃaːr.tum"},
{"šēdum", "ˈʃeː.dum"},
{"šīpātum", "ʃiːˈpaː.tum"},
{"šūmū", "ˈʃuː.muː"},
{"ūmum", "ˈuː.mum"},
{"ḫalāqum", "χaˈlaː.qum"},
{"ḫaṣṣinnum", "χasˤˈsˤin.num"},
{"ḫurāṣum", "χuˈraː.sˤum"},
{"ṣerretum", "ˈsˤer.re.tum"},
{"ṣeḫrum", "ˈsˤeχ.rum"},
{"ṣeḫērum", "sˤeˈχeː.rum"},
{"ṣuprum", "ˈsˤup.rum"},
{"ṣuḫārtum", "sˤuˈχaːr.tum"},
{"ṣuḫārum", "sˤuˈχaː.rum"},
{"ṣābum", "ˈsˤaː.bum"},
{"ṭabtum", "ˈtˤab.tum"},
{"ṭuppum", "ˈtˤup.pum"},
{"ṭābum", "ˈtˤaː.bum"}
}
tests:iterate(examples, "check_pron")
end
return tests