Module:User:OblivionKhorasan/pa-IPA-test/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:OblivionKhorasan/pa-IPA-test/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
37 of 67 tests failed. (refresh)
Term | Respelling | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|---|
خوش | xwś | xʊʃ | xwś | 2 | ||
جھانجر | `jHāṉjHar | ˈd͡ʒʱãːn̠.d͡ʒəɾᵊ | ˈd͡ʒʱaṉd͡ʒʱəɾ | 6 | ||
ساوݨ | `sāvaN | ˈsaː.ʋəɳᵊ | ˈsa.wəɳ | 4 | ||
مٹیار | muTī`ār | mʊ.ʈi.ˈjaːɾᵊ | mʊ.ʈi.ˈaɾ | 8 | ||
لیا | `leā | ˈleː.aː | ˈlea | 4 | ||
لیا | le`ā | le.ˈaː | leˈa | 3 | ||
کڑوا | `kaRvā | ˈkəɽᵊ.ʋaː | ˈkəɽ.wa | 5 | ||
ملاوݨا | milāvNā | ˈmɪ.laːʋᵊ.ɳaː | mɪ.law.ɳa | 1 |
Term | Respelling | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|---|
خوش | xwaš | xʊʃ | xʊš | 3 | ||
خواب | xwāb | xɑːb | xɑːb | |||
ابرنواختر | abar-naw-ax`tar | ʔä.bäɾ.näw.ʔäx.t̪ʰǽɾ | ʔä.bäɾ.näw.ʔäx.t̪ʰǽɾ | |||
ابراهیم | ibrā`hīm | ʔɪb.ɾɑː.ɦíːm | ʔɪb.ɾɑː.ɦíːm | |||
امام | i`mām | ʔɪ.mɑ́ːm | ʔɪ.mɑ́ːm | |||
پیشوا | pēš`vā | pʰeːʃ.wɑ́ː | pʰeːš.wɑ́ː | 5 | ||
نو | naw | näw | näw | |||
مستعمره | musta'ma`ra | mʊs.t̪ʰäʔ.mä.ɾǽ | mʊs.t̪ʰä'.mä.ɾǽ | 9 | ||
آزاد | ā`zād | ʔɑː.zɑ́ːd̪ | ʔɑː.zɑ́ːd̪ | |||
قول | qawl | qäwl | qäwl | |||
دولت | dawlat | d̪äw.lät̪ | d̪äw.lät̪ | |||
آخور | āxwar | ʔɑː.xʊɾ | ʔɑː.xʊɾ | |||
لغو | lağw | läɣw | läğw | 3 | ||
گور | gawr | ɡäwɾ | ɡäwɾ | |||
معتدل | mu'tadil | mo̞ʔ.t̪ʰä.d̪ɪl | mo̞'.t̪ʰä.d̪ɪl | 4 | ||
خوی | xway | xʊj | xʊj | |||
خوید | xwēd | xeːd̪ | xeːd̪ |
Term | Respelling | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|---|
خوش | xwaš | xoʃ | xoš | 3 | ||
خواب | xwāb | xɒːb̥ | xɒːb̥ | |||
ابرنواختر | abar.naw.ax.`tar | ʔæ.bæɹ.now.ʔæx.t̪ʰǽɹ | ʔæ.bæɹ.now.ʔæx.t̪ʰǽɹ | |||
ابراهیم | ibrā`hīm | ʔeb.ɹɒː.ɦíːm | ʔeb.ɹɒː.ɦíːm | |||
امام | i`mām | ʔe.mɒ́ːm | ʔe.mɒ́ːm | |||
پیشوا | pēš`vā | pʰiːʃ.vɒ́ː | pʰiːš.ʋɒ́ː | 5 | ||
نو | naw | now | now | |||
مستعمره | musta'ma`ra | mos.t̪ʰæʔ.mæ.ɹé | mos.t̪ʰæ'.mæ.ɹé | 9 | ||
آزاد | ā`zād | ʔɒː.zɒ́ːd̪̥ | ʔɒː.zɒ́ːd̪̥ | |||
قول | qawl | qowl̥ | qowl̥ | |||
دولت | dawlat | d̪ow.læt̪ | d̪ow.læt̪ | |||
آخور | āxwar | ʔɒː.xoɹ | ʔɒː.xoɹ | |||
لغو | lağw | læɢv | læɢʋ | 4 | ||
گور | gawr | ɡ̥owɹ | ɡ̥owɹ | |||
معتدل | mu'tadil | moʔ.t̪ʰæ.d̪el̥ | mo'.t̪ʰæ.d̪el̥ | 3 | ||
خوی | xway | xoj | xoj | |||
خوید | xwēd | xiːd̪̥ | xiːd̪̥ | |||
خودرو | xwadraw | xod̪.ɹow | xod̪.ɹow | |||
جو | jaw | d͡ʒow | d͡ʒow | |||
گوهر | gaw`har | ɡ̥ow.hǽɹ | ɡ̥ow.ɦǽɹ | 6 | ||
غلو | ğuluw(w) | qo.lov(v) | qo.loʋ(ʋ) | 6 | ||
پهلو | pah`law | pʰæɦ.lów | pʰæɦ.lów | |||
کتاب | ki`tāb | kʰʲe.t̪ʰɒ́ːb̥ | t͡ʃʰe.t̪ʰɒ́ːb̥ | 1 | ||
مگر | `magar | mǽ.ɡʲæɹ | mǽ.ɡʲæɹ |
Term | Respelling | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|---|
хуш (xuš) | xwaš | χuʃ | χuš | 3 | ||
хоб (xob) | xwāb | χɔb | χɔb | |||
абарнавахтар (abarnavaxtar) | abarnawax`tar | abaɾnavaχˈtaɾ | ʔä.bäɾ.nä.ʋäχ.t̪ʰǽɾ | 1 | ||
Иброҳим (Ibrohim) | ibrā`hīm | ibɾɔˈhim | ʔib.ɾɔ.ɦím | 1 | ||
имом (imom) | i`mām | iˈmɔm | ʔi.mɔ́m | 1 | ||
пешво (pešvo) | pēš`vā | peʃˈvɔ | pʰeš.ʋɔ́ | 2 | ||
нав (nav) | naw | nav | näw | 2 | ||
мустаъмара (mustaʾmara) | musta'ma`ra | mustaʔmaˈɾa | mus.t̪ʰä'.mä.ɾǽ | 4 | ||
фoтеҳ (foteh) | fā`tih | fɔˈteh | fɔ.t̪ʰéʱ | 3 | ||
диҳад (dihad) | di`had | diˈhad | d̪i.ɦǽd̪ | 1 | ||
фасеҳ (faseh) | fa`sīh | faˈseh | fä.séʱ | 2 | ||
васеъ (vaseʾ) | va`sī' | vaˈseʔ | ʋä.sé' | 1 | ||
охур (oxur) | āxwar | ɔχuɾ | ʔɔ.χuɾ | 1 | ||
лағв (laġv) | lağw | laʁv | läğw | 2 | ||
биҳишт (bihišt) | bihišt | bihiʃt | bi.ɦišt̪ | 3 | ||
мӯътадил (müʾtadil) | mu'tadil | mɵʔtadil | mɵ'.t̪ʰä.d̪il | 3 | ||
хуй (xuy) | xway | χuj | χuj | |||
хед (xed) | xwēd | χed | χed̪ | 3 |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:User:OblivionKhorasan/pa-IPA-test")
local sc_fa = require("Module:scripts").getByCode("fa-Arab")
local sc_tg = require("Module:scripts").getByCode("Cyrl")
local lang_fa = require("Module:languages").getByCode("fa")
local lang_tg = require("Module:languages").getByCode("tg")
function link(term)
return require("Module:links").full_link {
term = term,
lang = lang_fa,
sc = sc_fa
}
end
function link_tg(term)
return require("Module:links").full_link {
term = term,
lang = lang_tg,
sc = sc_tg
}
end
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
local options = { display = tag_IPA, show_difference = true }
function tests:check_output_fa(term, romanisation, expected)
self:equals(
{link(term), romanisation},
m_IPA.fa_IPA(romanisation),
expected,
options
)
end
function tests:check_output_fa_cls(term, romanisation, expected)
self:equals(
{link(term), romanisation},
m_IPA.fa_cls_IPA(romanisation),
expected,
options
)
end
function tests:check_output_tg(term, romanisation, expected)
self:equals(
{link_tg(term), romanisation},
m_IPA.tg_IPA(romanisation),
expected,
options
)
end
function tests:check_output_prs(term, romanisation, expected)
self:equals(
{link(term), romanisation},
m_IPA.prs_IPA(romanisation),
expected,
options
)
end
function tests:test_classical_persian()
examples = {
{ "خوش", "xwś", "xʊʃ"},
{ "جھانجر", "`jHāṉjHar", "ˈd͡ʒʱãːn̠.d͡ʒəɾᵊ"},
{ "ساوݨ", "`sāvaN", "ˈsaː.ʋəɳᵊ"},
{ "مٹیار", "muTī`ār", "mʊ.ʈi.ˈjaːɾᵊ"},
{ "لیا", "`leā", "ˈleː.aː"},
{ "لیا", "le`ā", "le.ˈaː"},
{ "کڑوا", "`kaRvā", "ˈkəɽᵊ.ʋaː"},
{ "ملاوݨا", "milāvNā", "ˈmɪ.laːʋᵊ.ɳaː"},
}
--[[ Copy the following to add more examples:
{ "", "", ""},
]]
tests:iterate(examples, "check_output_fa_cls")
end
function tests:test_dari_persian()
examples = {
{ "خوش", "xwaš", "xʊʃ"},
{ "خواب", "xwāb", "xɑːb"},
{ "ابرنواختر", "abar-naw-ax`tar", "ʔä.bäɾ.näw.ʔäx.t̪ʰǽɾ"},
{ "ابراهیم", "ibrā`hīm", "ʔɪb.ɾɑː.ɦíːm"},
{ "امام", "i`mām", "ʔɪ.mɑ́ːm"},
{ "پیشوا", "pēš`vā", "pʰeːʃ.wɑ́ː"},
{ "نو", "naw", "näw"},
{ "مستعمره", "musta'ma`ra", "mʊs.t̪ʰäʔ.mä.ɾǽ"},
{ "آزاد", "ā`zād", "ʔɑː.zɑ́ːd̪"},
{ "قول", "qawl", "qäwl"},
{ "دولت", "dawlat", "d̪äw.lät̪"},
{ "آخور", "āxwar", "ʔɑː.xʊɾ"},
{ "لغو", "lağw", "läɣw"},
{ "گور", "gawr", "ɡäwɾ"},
{ "معتدل", "mu'tadil", "mo̞ʔ.t̪ʰä.d̪ɪl"},
{ "خوی", "xway", "xʊj"},
{ "خوید", "xwēd", "xeːd̪"},
}
--[[ Copy the following to add more examples:
{ "", "", ""},
]]
tests:iterate(examples, "check_output_prs")
end
function tests:test_iranian_persian()
examples = {
{ "خوش", "xwaš", "xoʃ"},
{ "خواب", "xwāb", "xɒːb̥"},
{ "ابرنواختر", "abar.naw.ax.`tar", "ʔæ.bæɹ.now.ʔæx.t̪ʰǽɹ"},
{ "ابراهیم", "ibrā`hīm", "ʔeb.ɹɒː.ɦíːm"},
{ "امام", "i`mām", "ʔe.mɒ́ːm"},
{ "پیشوا", "pēš`vā", "pʰiːʃ.vɒ́ː"},
{ "نو", "naw", "now"},
{ "مستعمره", "musta'ma`ra", "mos.t̪ʰæʔ.mæ.ɹé"},
{ "آزاد", "ā`zād", "ʔɒː.zɒ́ːd̪̥"},
{ "قول", "qawl", "qowl̥"},
{ "دولت", "dawlat", "d̪ow.læt̪"},
{ "آخور", "āxwar", "ʔɒː.xoɹ"},
{ "لغو", "lağw", "læɢv"},
{ "گور", "gawr", "ɡ̥owɹ"},
{ "معتدل", "mu'tadil", "moʔ.t̪ʰæ.d̪el̥"},
{ "خوی", "xway", "xoj"},
{ "خوید", "xwēd", "xiːd̪̥"},
{ "خودرو", "xwadraw", "xod̪.ɹow"},
{ "جو", "jaw", "d͡ʒow"},
{ "گوهر", "gaw`har", "ɡ̥ow.hǽɹ"},
{ "غلو", "ğuluw(w)", "qo.lov(v)"},
{ "پهلو", "pah`law", "pʰæɦ.lów"},
{ "کتاب", "ki`tāb", "kʰʲe.t̪ʰɒ́ːb̥"},
{ "مگر", "`magar", "mǽ.ɡʲæɹ"},
}
--[[ Copy the following to add more examples:
{ "", "", ""},
]]
tests:iterate(examples, "check_output_fa")
end
function tests:test_tajik()
examples = {
{ "хуш", "xwaš", "χuʃ"},
{ "хоб", "xwāb", "χɔb"},
{ "абарнавахтар", "abarnawax`tar", "abaɾnavaχˈtaɾ"},
{ "Иброҳим", "ibrā`hīm", "ibɾɔˈhim"},
{ "имом", "i`mām", "iˈmɔm"},
{ "пешво", "pēš`vā", "peʃˈvɔ"},
{ "нав", "naw", "nav"},
{ "мустаъмара", "musta'ma`ra", "mustaʔmaˈɾa"},
{ "фoтеҳ", "fā`tih", "fɔˈteh"},
{ "диҳад", "di`had", "diˈhad"},
{ "фасеҳ", "fa`sīh", "faˈseh"},
{ "васеъ", "va`sī\'", "vaˈseʔ"},
{ "охур", "āxwar", "ɔχuɾ"},
{ "лағв", "lağw", "laʁv"},
{ "биҳишт", "bihišt", "bihiʃt"},
{ "мӯътадил", "mu'tadil", "mɵʔtadil"},
{ "хуй", "xway", "χuj"},
{ "хед", "xwēd", "χed"},
}
--[[ Copy the following to add more examples:
{ "", "", ""},
]]
tests:iterate(examples, "check_output_tg")
end
return tests