- The following documentation is located at Module:bcl-pron/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 (diff)
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
aldaw | ʔal̪ˈd̪aʊ̯ | ʔal̪ˈd̪aʊ̯ | |
anyil | ʔaˈɲil̪ | ʔaˈɲil̪ | |
aso | ˈʔa.so | ˈʔa.so | |
baak | ˈbaʔ.ak | ˈbaʔ.ak | |
babaye | baˈba.je | baˈba.je | |
baga | ˈba.ɡaʔ | ˈba.ɡaʔ | |
baga | baˈɡaʔ | baˈɡaʔ | |
baka | ˈba.ka | ˈba.ka | |
bakla | bakˈl̪aʔ | bakˈl̪aʔ | |
banyo | ˈba.ɲo | ˈba.ɲo | |
bareta | baˈɾe.taʔ | baˈɾe.taʔ | |
basog | baˈsoɡ | baˈsoɡ | |
bitaog | biˈtaʔ.oɡ | biˈtaʔ.oɡ | |
Camarines Sur | ka.maˈɾi.n̪es suɾ | ka.maˈɾi.n̪es suɾ | |
Carlos | ˈkaɾ.l̪os | ˈkaɾ.l̪os | |
daan | ˈd̪aʔ.an̪ | ˈd̪aʔ.an̪ | |
datong | d̪aˈtoŋ | d̪aˈtoŋ | |
dila | ˈd̪i.l̪aʔ | ˈd̪i.l̪aʔ | |
diyaryo | ˈd͡ʒaɾ.jo | ˈd͡ʒaɾ.jo | |
dominggo | d̪oˈmiŋ.ɡo | d̪oˈmiŋ.ɡo | |
duwa | ˈd̪wa | ˈd̪wa | |
hadok | haˈd̪ok | haˈd̪ok | |
hagok | ˈhaʔ.ɡok | ˈhaʔ.ɡok | |
hiwa | ˈhi.waʔ | ˈhi.waʔ | |
hiwaon | hiˈwaʔ.on̪ | hiˈwaʔ.on̪ | |
ina | ʔiˈn̪a | ʔiˈn̪a | |
kabaong | kaˈbaʔ.oŋ | kaˈbaʔ.oŋ | |
katre | ˈkat.ɾe | ˈkat.ɾe | |
lagadi | l̪aˈɡa.d̪iʔ | l̪aˈɡa.d̪iʔ | |
lapida | ˈl̪a.pi.d̪a | ˈl̪a.pi.d̪a | |
laya | ˈl̪aʔ.ja | ˈl̪aʔ.ja | |
Legazpi | l̪eˈɡas.pi | l̪eˈɡas.pi | |
ligwan | l̪iɡˈwan̪ | l̪iɡˈwan̪ | |
linog | ˈl̪i.n̪oɡ | ˈl̪i.n̪oɡ | |
luob | l̪uʔˈob | l̪uʔˈob | |
luto | ˈl̪u.toʔ | ˈl̪u.toʔ | |
Niño | ˈn̪i.ɲo | ˈn̪i.ɲo | |
nganga | ˈŋa.ŋa | ˈŋa.ŋa | |
pakla | pakˈl̪a | pakˈl̪a | |
parakol | pa.ɾaˈkol̪ | pa.ɾaˈkol̪ | |
pinto | pin̪ˈtoʔ | pin̪ˈtoʔ | |
pulo | puˈl̪oʔ | puˈl̪oʔ |
local tests = require("Module:UnitTests")
local m_bcl_pron = require("Module:bcl-pron")
local function tag_IPA(IPA)
return "<span class='IPA'>" .. IPA .. "</span>"
end
function tests:check_phonetic_ipa(text, expected, respelling)
self:equals(
"[[" .. text .. "#Bikol Central|" .. text .. "]]",
m_bcl_pron.IPA(respelling, true),
expected,
{ display = tag_IPA }
)
end
function tests:test_phonetic_pron()
local examples = {
{ "aldaw", "ʔal̪ˈd̪aʊ̯", "aldáw" },
{ "anyil", "ʔaˈɲil̪", "anyíl" },
{ "aso", "ˈʔa.so", "aso" },
{ "baak", "ˈbaʔ.ak", "bâak"},
{ "babaye","baˈba.je", "babaye" },
{ "baga","ˈba.ɡaʔ", "bagà" },
{ "baga","baˈɡaʔ", "bagâ" },
{ "baka","ˈba.ka", "baka" },
{ "bakla","bakˈl̪aʔ", "baklâ" },
{ "banyo","ˈba.ɲo", "banyo" },
{ "bareta","baˈɾe.taʔ", "baretà" },
{ "basog", "baˈsoɡ", "basóg" },
{ "bitaog", "biˈtaʔ.oɡ", "bitâog"},
{ "Camarines Sur","ka.maˈɾi.n̪es suɾ","Camarines Sur"},
{ "Carlos","ˈkaɾ.l̪os","Carlos"},
{ "daan","ˈd̪aʔ.an̪", "dâan" },
{ "datong","d̪aˈtoŋ", "datóng" },
{ "dila", "ˈd̪i.l̪aʔ", "dilà" },
{ "diyaryo","ˈd͡ʒaɾ.jo", "diyaryo" },
{ "dominggo", "d̪oˈmiŋ.ɡo", "dominggo"},
{ "duwa", "ˈd̪wa", "duwá"},
{ "hadok","haˈd̪ok", "hadók" },
{ "hagok","ˈhaʔ.ɡok", "hàgok" },
{ "hiwa","ˈhi.waʔ", "hiwà" },
{ "hiwaon","hiˈwaʔ.on̪", "hiwâon" },
{ "ina","ʔiˈn̪a", "iná" },
{ "kabaong", "kaˈbaʔ.oŋ", "kabâong"},
{ "katre", "ˈkat.ɾe", "katre"},
{ "lagadi","l̪aˈɡa.d̪iʔ","lagadì"},
{ "lapida","ˈl̪a.pi.d̪a","lápida"},
{ "laya","ˈl̪aʔ.ja","lâya"},
{ "Legazpi","l̪eˈɡas.pi","Legazpi"},
{ "ligwan","l̪iɡˈwan̪","ligwán"},
{ "linog","ˈl̪i.n̪oɡ","linog"},
{ "luob","l̪uʔˈob","lù.ób"},
{ "luto","ˈl̪u.toʔ","lutò"},
{ "Niño","ˈn̪i.ɲo","Niño"},
{ "nganga","ˈŋa.ŋa","nganga"},
{ "pakla","pakˈl̪a", "paklá" },
{ "parakol","pa.ɾaˈkol̪", "parakól" },
{ "pinto","pin̪ˈtoʔ", "pintô" },
{ "pulo","puˈl̪oʔ", "pulô" },
}
self:iterate(examples, "check_phonetic_ipa")
end
return tests