Module:ne-IPA/testcases
Appearance
- The following documentation is located at Module:ne-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 (diff)
1 of 54 tests failed. (refresh)
Text | Expected | Actual | Comments | |
---|---|---|---|---|
विवाह (vivāha) | [bibä̤ː] | [bibä̤ː] | ||
श्रावण (śrāwaṇ) | [sräwʌɽ̃] | [sräwʌɽ̃] | ||
हलो (halo) | [ɦʌlo] | [ɦʌlo] | ||
जहाज (jahāj) | [d͡zä̤ː(d)z] | [d͡zä̤ː(d)z] | ||
कार्य (kārya) | [kärːe] | [kärːe] | ||
पर्यो (paryo) | [pʌɾjo] | [pʌɾjo] | ||
विश्व (viśwa) | [bisːo] | [bisːo] | ||
अक्षर (akṣar) | [ʌk̚t͡sʰer] | [ʌk̚t͡sʰer] | ||
क्षेत्री (kṣetrī) | [t͡sʰet̪ri] | [t͡sʰet̪ri] | ||
त्यस (tyas) | [t̪es] | [t̪es] | ||
विश्व (viśwa) | [bisːo] | [bisːo] | ||
राज्य (rājya) | [räd̚d͡ze] | [räd̚d͡ze] | ||
अङ्ग्रेजी (aṅgrejī) | [ʌŋɡre(d)zi] | [ʌŋɡre(d)zi] | ||
पेय (peya) | [pe(j)ʌ] | [pe(j)ʌ] | ||
अन्तर्राष्ट्रिय (antarrāṣṭriya) | [ʌn̪t̪ʌrːäs̠t̠rie] | [ʌn̪t̪ʌrːäs̠t̠rie] | dental assimilation | |
सय (saya) | [sʌe] | [sʌe] | non-initial ya before before consonants | |
सत्य (satya) | [sʌt̪t̪e] | [sʌt̪t̪e] | gemination of preceding consonant and replacement with e | |
यस (yas) | [es] | [es] | Initial ya replacement with e | |
विश्वास (viśvās) | [biswäs] | [biswäs] | w to b before certain vowels and glides | |
विश्व (viśwa) | [bisːo] | [bisːo] | ||
वरिपरि (waripari) | [wʌɾipʌɾi] | [wʌɾipʌɾi] | w elsewhere | |
घरको (gharko) | [ɡʱʌ̤rko] | [ɡʱʌ̤rko] | breathy vowel after voiced aspirates | |
अर्थ (artha) | [ʌrt̪ʰʌ] | [ʌrt̪ʰʌ] | ||
अर्को (arko) | [ʌrko] | [ʌrko] | ||
तारा (tārā) | [t̪äɾä] | [t̪äɾä] | tapped r intervocalically | |
घोडा (ghoḍā) | [ɡʱo̤ɽä] | [ɡʱo̤ɽä] | retroflex tap postvocalically | |
डर (ḍar) | [ɖʌr] | [ɖʌr] | ḍ elsewhere | |
कस्को (kasko) | [kʌsko] | [kʌsko] | ||
कसको (kasko) | [kʌsko] | [kʌsko] | ||
लर्क (larka) | [lʌrkʌ] | [lʌrkʌ] | turned v into schwa final syllable | |
सम्म (samma) | [sʌmːʌ] | [sʌmːʌ] | ||
संस्था (sansthā) | [sʌnst̪ʰä] | [sʌnst̪ʰä] | ||
रुची (rucī) | [rut͡si] | [rut͡si] | ||
हाम्रो (hāmro) | [ɦämro] | [ɦämro] | ||
बाह्र (bāhra) | [bäɾʌ] | [bäɾʌ] | ||
बाह्रखरी (bāhrakharī) | [bäɾʌk̞ʰʌɾi] | [bäɾʌk̞ʰʌɾi] | ||
बाह्य (bāhya) | [bäi̯e] | [bäi̯e] | ||
चर्चा (carcā) | [t͡sʌrt͡sä] | [t͡sʌrt͡sä] | ||
रचना (racanā) | [rʌt͡sʌnä] | [rʌt͡sʌnä] | ||
टर्रो (ṭarro) | [ʈʌrːo] | [ʈʌrːo] | ||
आर (ār) | [är] | [är] | ||
ईर् (īr) | [ir] | [ir] | ||
रातो (rāto) | [rät̪o] | [rät̪o] | ||
उर (ura) | [ur] | [uɾʌ] | ||
दुई (duī) | [d̪ui̯] | [d̪ui̯] | ||
चप्पल (cappal) | [t͡sʌp̚pʌl] | [t͡sʌp̚pʌl] | ||
पक्का (pakkā) | [pʌk̚kä] | [pʌk̚kä] | ||
अस्ट्रेलिया (asṭreliyā) | [ʌs̠t̠relijä] | [ʌs̠t̠relijä] | ||
भिज़न (bhizan) | [bʱi̤zʌn] | [bʱi̤zʌn] | ||
ऑस्ट्रेलिया (ŏsṭreliyā) | [ɒs̠t̠relijä] | [ɒs̠t̠relijä] | ||
ॲप (ĕp) | [æp] | [æp] | ||
ज़ू (zū) | [zu] | [zu] | ||
द़िस (ðis) | [ðis] | [ðis] | ||
थ़िक (θik) | [θik] | [θik] |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:ne-IPA")
local function tag_IPA(IPA)
if phonetic then
IPA = "/" .. IPA .. "/"
else
IPA = "[" .. IPA .. "]"
end
return '<span class="IPA">' .. IPA .. "</span>"
end
function tests:check_output(term, expected, comment)
self:equals(m_IPA.link(term), tag_IPA(m_IPA.toIPA(term, "standard")), tag_IPA(expected), {comment = comment})
end
function tests:test_phonetic()
examples = {
{"विवाह", "bibä̤ː"},
{"श्रावण", "sräwʌɽ̃"},
{"हलो", "ɦʌlo"},
{"जहाज", "d͡zä̤ː(d)z"},
{"कार्य", "kärːe"},
{"पर्यो", "pʌɾjo"},
{"विश्व", "bisːo"},
{"अक्षर", "ʌk̚t͡sʰer"},
{"क्षेत्री", "t͡sʰet̪ri"},
{"त्यस", "t̪es"},
{"विश्व", "bisːo"},
{"राज्य", "räd̚d͡ze"},
{"अङ्ग्रेजी", "ʌŋɡre(d)zi"},
{"पेय", "pe(j)ʌ"},
{"अन्तर्राष्ट्रिय", "ʌn̪t̪ʌrːäs̠t̠rie", "dental assimilation"},
{"सय", "sʌe", "non-initial ya before before consonants"},
{"सत्य", "sʌt̪t̪e", "gemination of preceding consonant and replacement with e"},
{"यस", "es", "Initial ya replacement with e"},
{"विश्वास", "biswäs", "w to b before certain vowels and glides"},
{"विश्व", "bisːo"},
{"वरिपरि", "wʌɾipʌɾi", "w elsewhere"},
{"घरको", "ɡʱʌ̤rko", "breathy vowel after voiced aspirates"},
{"अर्थ", "ʌrt̪ʰʌ"},
{"अर्को", "ʌrko"},
{"तारा", "t̪äɾä", "tapped r intervocalically"},
{"घोडा", "ɡʱo̤ɽä", "retroflex tap postvocalically"},
{"डर", "ɖʌr", "ḍ elsewhere"},
{"कस्को", "kʌsko"},
{"कसको", "kʌsko"},
{"लर्क", "lʌrkʌ", "turned v into schwa final syllable"},
{"सम्म", "sʌmːʌ"},
{"संस्था", "sʌnst̪ʰä"},
{"रुची", "rut͡si"},
{"हाम्रो", "ɦämro"},
{"बाह्र", "bäɾʌ"},
{"बाह्रखरी", "bäɾʌk̞ʰʌɾi"},
{"बाह्य", "bäi̯e"},
{"चर्चा", "t͡sʌrt͡sä"},
{"रचना", "rʌt͡sʌnä"},
{"टर्रो", "ʈʌrːo"},
{"आर", "är"},
{"ईर्", "ir"},
{"रातो", "rät̪o"},
{"उर", "ur"},
{"दुई", "d̪ui̯"},
{"चप्पल", "t͡sʌp̚pʌl"},
{"पक्का", "pʌk̚kä"},
{"अस्ट्रेलिया", "ʌs̠t̠relijä"},
{"भिज़न", "bʱi̤zʌn"},
{"ऑस्ट्रेलिया", "ɒs̠t̠relijä"},
{"ॲप", "æp"},
{"ज़ू", "zu"},
{"द़िस", "ðis"},
{"थ़िक", "θik"}
}
tests:iterate(examples, "check_output")
end
return tests