Module:ny-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:ny-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
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
ba | /ɓa/ | /ɓa/ | |
pa | /pa/ | /pa/ | |
pha | /pʰa/ | /pʰa/ | |
mba | /ᵐba/ | /ᵐba/ | |
mpha | /ᵐpʰa/ | /ᵐpʰa/ | |
ma | /ma/ | /ma/ | |
ŵa | /w⁽ᵝ⁾a/ | /w⁽ᵝ⁾a/ | |
bwe | /ɓʷe/ | /ɓʷe/ | |
pwa | /pʷa/ | /pʷa/ | |
phwa | /pʷʰa/ | /pʷʰa/ | |
mbwo | /ᵐbʷo/ | /ᵐbʷo/ | |
mphwu | /ᵐpʷʰu/ | /ᵐpʷʰu/ | |
mwo | /mʷo/ | /mʷo/ | |
wa | /wa/ | /wa/ | |
bza | /bzʲa/ | /bzʲa/ | |
pya | /pʲa/ | /pʲa/ | |
psa | /psʲa/ | /psʲa/ | |
mbza | /ᵐbzʲa/ | /ᵐbzʲa/ | |
mpsa | /ᵐpsʲa/ | /ᵐpsʲa/ | |
mya | /mʲa/ | /mʲa/ | |
da | /ɗa/ | /ɗa/ | |
ta | /ta/ | /ta/ | |
tha | /tʰa/ | /tʰa/ | |
nda | /ⁿda/ | /ⁿda/ | |
ntha | /ⁿtʰa/ | /ⁿtʰa/ | |
na | /na/ | /na/ | |
la | /ɽa/ | /ɽa/ | |
ri | /ɽi/ | /ɽi/ | |
dwa | /ɗʷa/ | /ɗʷa/ | |
twa | /tʷa/ | /tʷa/ | |
thwa | /tʷʰa/ | /tʷʰa/ | |
ndwa | /ⁿdʷa/ | /ⁿdʷa/ | |
nthwa | /ⁿtʷʰa/ | /ⁿtʷʰa/ | |
lwa | /ɽʷa/ | /ɽʷa/ | |
rwa | /ɽʷa/ | /ɽʷa/ | |
dya | /ɗʲa/ | /ɗʲa/ | |
tya | /tʲa/ | /tʲa/ | |
thya | /tʲʰa/ | /tʲʰa/ | |
ndya | /ⁿdʲa/ | /ⁿdʲa/ | |
nthya | /ⁿtʲʰa/ | /ⁿtʲʰa/ | |
ga | /ɡa/ | /ɡa/ | |
ka | /ka/ | /ka/ | |
kha | /kʰa/ | /kʰa/ | |
nga | /ᵑɡa/ | /ᵑɡa/ | |
nkha | /ᵑkʰa/ | /ᵑkʰa/ | |
ng'a | /ŋa/ | /ŋa/ | |
ha | /ha/ | /ha/ | |
gwa | /ɡʷa/ | /ɡʷa/ | |
kwa | /kʷa/ | /kʷa/ | |
khwa | /kʷʰa/ | /kʷʰa/ | |
ngwa | /ᵑɡʷa/ | /ᵑɡʷa/ | |
nkhwa | /ᵑkʷʰa/ | /ᵑkʷʰa/ | |
ng'wa | /ŋʷa/ | /ŋʷa/ | |
ja | /d͡ʒa/ | /d͡ʒa/ | |
ńcha | /ˈń.t͡ʃa/ | /ˈń.t͡ʃa/ | |
tcha | /t͡ʃʰa/ | /t͡ʃʰa/ | |
nja | /ⁿd͡ʒa/ | /ⁿd͡ʒa/ | |
ntcha | /ⁿt͡ʃʰa/ | /ⁿt͡ʃʰa/ | |
nya | /ɲa/ | /ɲa/ | |
ya | /ja/ | /ja/ | |
va | /va/ | /va/ | |
fa | /fa/ | /fa/ | |
mva | /ᶬva/ | /ᶬva/ | |
mfa | /ᶬfa/ | /ᶬfa/ | |
vwa | /vʷa/ | /vʷa/ | |
fwa | /fʷa/ | /fʷa/ | |
vya | /vʲa/ | /vʲa/ | |
fya | /fʲa/ | /fʲa/ | |
za | /za/ | /za/ | |
sa | /sa/ | /sa/ | |
nza | /ⁿza/ | /ⁿza/ | |
nsa | /ⁿsa/ | /ⁿsa/ | |
zwa | /zʷa/ | /zʷa/ | |
swa | /sʷa/ | /sʷa/ | |
nzwa | /ⁿzʷa/ | /ⁿzʷa/ | |
nswa | /ⁿsʷa/ | /ⁿsʷa/ | |
zya | /ʒa/ | /ʒa/ | |
sha | /ʃa/ | /ʃa/ | |
dza | /d͡za/ | /d͡za/ | |
tsa | /t͡sa/ | /t͡sa/ | |
ndza | /ⁿd͡za/ | /ⁿd͡za/ | |
dzwe | /d͡zʷe/ | /d͡zʷe/ | |
tswa | /t͡sʷa/ | /t͡sʷa/ | |
áwu | /ˈá.(w)u/ | /ˈá.(w)u/ | |
éwu | /ˈé.(w)u/ | /ˈé.(w)u/ | |
íwu | /ˈí.(w)u/ | /ˈí.(w)u/ | |
ówa | /ˈó.(w)a/ | /ˈó.(w)a/ | |
úwa | /ˈú.(w)a/ | /ˈú.(w)a/ | |
bamphwenthing'wódzwu | /ɓa.ᵐpʷʰe.ⁿtʰiˈŋʷó.d͡zʷu/ | /ɓa.ᵐpʷʰe.ⁿtʰiˈŋʷó.d͡zʷu/ | |
zása | /ˈzá.sa/ | /ˈzá.sa/ | |
zwam'báfwa | /zʷa.mˈɓá.fʷa/ | /zʷa.mˈɓá.fʷa/ | |
b'ála | /ˈbá.ɽa/ | /ˈbá.ɽa/ | |
m'phunzitsi | /m.pʰuˈⁿzi.t͡si/ | /m.pʰuˈⁿzi.t͡si/ | |
anáḿpatsa | /a.ná.ḿˈpa.t͡sa/ | /a.ná.ḿˈpa.t͡sa/ | |
kamwaná | /kaˈmʷa.ná/ | /kaˈmʷa.ná/ | |
mwána | /ˈmʷá.na/ | /ˈmʷá.na/ | |
munthu | /ˈmu.ⁿtʰu/ | /ˈmu.ⁿtʰu/ | |
kamwana | /kaˈmʷa.na/ | /kaˈmʷa.na/ | |
M'chewa | /mˈt͡ʃe.wa/ | /mˈt͡ʃe.wa/ | |
d'úla | /ˈdú.ɽa/ | /ˈdú.ɽa/ | |
uta | /ˈu.ta/ | /ˈu.ta/ | |
zíkomo kwámbíri | /zíˈko.mo kʷáˈᵐbí.ɽi/ | /zíˈko.mo kʷáˈᵐbí.ɽi/ | |
zíkomo | /zíˈko.mo/ | /zíˈko.mo/ | |
-onse | /ˈo.ⁿse/ | /ˈo.ⁿse/ | |
ng'ombe | /ˈŋo.ᵐbe/ | /ˈŋo.ᵐbe/ | |
M'maláŵi | /m.maˈɽá.w⁽ᵝ⁾i/ | /m.maˈɽá.w⁽ᵝ⁾i/ | |
mawú | /ˈma.(w)ú/ | /ˈma.(w)ú/ | |
máyí wáḿkúlu | /ˈmá.jí wá.ḿˈkú.ɽu/ | /ˈmá.jí wá.ḿˈkú.ɽu/ |
local tests = require('Module:UnitTests')
local m_ny_pron = require('Module:ny-IPA')
local m_links = require('Module:links')
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
function tests:check_pron(text, IPA)
self:equals(
text,
m_ny_pron.IPA(text),
IPA,
{ display = tag_IPA }
)
end
function tests:test_pron()
local examples = {
{ "ba", "/ɓa/" },
{ "pa", "/pa/" },
{ "pha", "/pʰa/" },
{ "mba", "/ᵐba/" },
{ "mpha", "/ᵐpʰa/" },
{ "ma", "/ma/" },
{ "ŵa", "/w⁽ᵝ⁾a/" },
{ "bwe", "/ɓʷe/" },
{ "pwa", "/pʷa/" },
{ "phwa", "/pʷʰa/" },
{ "mbwo", "/ᵐbʷo/" },
{ "mphwu", "/ᵐpʷʰu/" },
{ "mwo", "/mʷo/" },
{ "wa", "/wa/" },
{ "bza", "/bzʲa/" },
{ "pya", "/pʲa/" },
{ "psa", "/psʲa/" },
{ "mbza", "/ᵐbzʲa/" },
{ "mpsa", "/ᵐpsʲa/" },
{ "mya", "/mʲa/" },
{ "da", "/ɗa/" },
{ "ta", "/ta/" },
{ "tha", "/tʰa/" },
{ "nda", "/ⁿda/" },
{ "ntha", "/ⁿtʰa/" },
{ "na", "/na/" },
{ "la", "/ɽa/" },
{ "ri", "/ɽi/" },
{ "dwa", "/ɗʷa/" },
{ "twa", "/tʷa/" },
{ "thwa", "/tʷʰa/" },
{ "ndwa", "/ⁿdʷa/" },
{ "nthwa", "/ⁿtʷʰa/" },
{ "lwa", "/ɽʷa/" },
{ "rwa", "/ɽʷa/" },
{ "dya", "/ɗʲa/" },
{ "tya", "/tʲa/" },
{ "thya", "/tʲʰa/" },
{ "ndya", "/ⁿdʲa/" },
{ "nthya", "/ⁿtʲʰa/" },
{ "ga", "/ɡa/" },
{ "ka", "/ka/" },
{ "kha", "/kʰa/" },
{ "nga", "/ᵑɡa/" },
{ "nkha", "/ᵑkʰa/" },
{ "ng'a", "/ŋa/" },
{ "ha", "/ha/" },
{ "gwa", "/ɡʷa/" },
{ "kwa", "/kʷa/" },
{ "khwa", "/kʷʰa/" },
{ "ngwa", "/ᵑɡʷa/" },
{ "nkhwa", "/ᵑkʷʰa/" },
{ "ng'wa", "/ŋʷa/" },
{ "ja", "/d͡ʒa/" },
{ "ńcha", "/ˈń.t͡ʃa/" },
{ "tcha", "/t͡ʃʰa/" },
{ "nja", "/ⁿd͡ʒa/" },
{ "ntcha", "/ⁿt͡ʃʰa/" },
{ "nya", "/ɲa/" },
{ "ya", "/ja/" },
{ "va", "/va/" },
{ "fa", "/fa/" },
{ "mva", "/ᶬva/" },
{ "mfa", "/ᶬfa/" },
{ "vwa", "/vʷa/" },
{ "fwa", "/fʷa/" },
{ "vya", "/vʲa/" },
{ "fya", "/fʲa/" },
{ "za", "/za/" },
{ "sa", "/sa/" },
{ "nza", "/ⁿza/" },
{ "nsa", "/ⁿsa/" },
{ "zwa", "/zʷa/" },
{ "swa", "/sʷa/" },
{ "nzwa", "/ⁿzʷa/" },
{ "nswa", "/ⁿsʷa/" },
{ "zya", "/ʒa/" },
{ "sha", "/ʃa/" },
{ "dza", "/d͡za/" },
{ "tsa", "/t͡sa/" },
{ "ndza", "/ⁿd͡za/" },
{ "dzwe", "/d͡zʷe/" },
{ "tswa", "/t͡sʷa/" },
{ "áwu", "/ˈá.(w)u/" },
{ "éwu", "/ˈé.(w)u/" },
{ "íwu", "/ˈí.(w)u/" },
{ "ówa", "/ˈó.(w)a/" },
{ "úwa", "/ˈú.(w)a/" },
{ "bamphwenthing'wódzwu", "/ɓa.ᵐpʷʰe.ⁿtʰiˈŋʷó.d͡zʷu/" },
{ "zása", "/ˈzá.sa/" },
{ "zwam'báfwa", "/zʷa.mˈɓá.fʷa/" },
{ "b'ála", "/ˈbá.ɽa/" },
{ "m'phunzitsi", "/m.pʰuˈⁿzi.t͡si/" },
{ "anáḿpatsa", "/a.ná.ḿˈpa.t͡sa/" },
{ "kamwaná", "/kaˈmʷa.ná/" },
{ "mwána", "/ˈmʷá.na/" },
{ "munthu", "/ˈmu.ⁿtʰu/" },
{ "kamwana", "/kaˈmʷa.na/" },
{ "M'chewa", "/mˈt͡ʃe.wa/" },
{ "d'úla", "/ˈdú.ɽa/" },
{ "uta", "/ˈu.ta/" },
{ "zíkomo kwámbíri", "/zíˈko.mo kʷáˈᵐbí.ɽi/" },
{ "zíkomo", "/zíˈko.mo/" },
{ "-onse", "/ˈo.ⁿse/" },
{ "ng'ombe", "/ˈŋo.ᵐbe/" },
{ "M'maláŵi", "/m.maˈɽá.w⁽ᵝ⁾i/" },
{ "mawú", "/ˈma.(w)ú/" },
{ "máyí wáḿkúlu", "/ˈmá.jí wá.ḿˈkú.ɽu/" },
}
self:iterate(examples, "check_pron")
end
return tests