Module:izh-pronunciation/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:izh-pronunciation/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 | |
---|---|---|---|
![]() | koira (Ala-Laukaa) | /ˈkoi̯rɑ/, [ˈko̞i̯r] | /ˈkoi̯rɑ/, [ˈko̞i̯r] |
![]() | koira (Soikkola) | /ˈkoi̯rɑ/, [ˈko̞i̯rɑ] | /ˈkoi̯rɑ/, [ˈko̞i̯rɑ] |
![]() | maata (ma.ata) (Ala-Laukaa) | /ˈmɑ.ɑtɑ/, [ˈmɑ.ɑt] | /ˈmɑ.ɑtɑ/, [ˈmɑ.ɑt] |
![]() | maata (ma.ata) (Soikkola) | /ˈmɑ.ɑtɑ/, [ˈmɑ.ɑd̥ɑ] | /ˈmɑ.ɑtɑ/, [ˈmɑ.ɑd̥ɑ] |
![]() | eno (Ala-Laukaa) | /ˈeno/, [ˈe̞no̞] | /ˈeno/, [ˈe̞no̞] |
![]() | eno (enoj) (Soikkola) | /ˈenoi̯/, [ˈe̞no̞i̯] | /ˈenoi̯/, [ˈe̞no̞i̯] |
![]() | syän (Ala-Laukaa) | /ˈsyæn/, [ˈs̠yæn] | /ˈsyæn/, [ˈs̠yæn] |
![]() | syän (Soikkola) | /ˈsyæn/, [ˈʃyæn] | /ˈsyæn/, [ˈʃyæn] |
![]() | paljo (Ala-Laukaa) | /ˈpɑljo/, [ˈpɑlʲːŏ̞̥] | /ˈpɑljo/, [ˈpɑlʲːŏ̞̥] |
![]() | paljo (Soikkola) | /ˈpɑljo/, [ˈpɑlʲjo̞] | /ˈpɑljo/, [ˈpɑlʲjo̞] |
![]() | valkia (Ala-Laukaa) | /ˈʋɑlkiɑ/, [ˈʋɑɫke̞] | /ˈʋɑlkiɑ/, [ˈʋɑɫke̞] |
![]() | valkia (Soikkola) | /ˈʋɑlkiɑ/, [ˈʋɑɫkiɑ] | /ˈʋɑlkiɑ/, [ˈʋɑɫkiɑ] |
![]() | näyttää (Ala-Laukaa) | /ˈnæy̯tːæː/, [ˈnæy̯tːæ] | /ˈnæy̯tːæː/, [ˈnæy̯tːæ] |
![]() | näyttää (Soikkola) | /ˈnæy̯tːæː/, [ˈnæy̯tːæː] | /ˈnæy̯tːæː/, [ˈnæy̯tːæː] |
![]() | leikata (leikata) (Ala-Laukaa) | /ˈlei̯kɑtɑ/, [ˈlʲe̞i̯kət] | /ˈlei̯kɑtɑ/, [ˈlʲe̞i̯kət] |
![]() | leikata (leikata) (Soikkola) | /ˈlei̯kɑtɑ/, [ˈle̞i̯ɡ̊ɑd̥ɑ] | /ˈlei̯kɑtɑ/, [ˈle̞i̯ɡ̊ɑd̥ɑ] |
![]() | toest (toesta) (Ala-Laukaa) | /ˈtoestɑ/, [ˈto̞e̞s̠t] | /ˈtoestɑ/, [ˈto̞e̞s̠t] |
![]() | toest (Soikkola) | /ˈtoest/, [ˈto̞e̞ʃt] | /ˈtoest/, [ˈto̞e̞ʃt] |
![]() | latva (Ala-Laukaa) | /ˈlɑtʋɑ/, [ˈɫɑdʋ] | /ˈlɑtʋɑ/, [ˈɫɑdʋ] |
![]() | latva (Soikkola) | /ˈlɑtʋɑ/, [ˈɫɑd̥ʋɑ] | /ˈlɑtʋɑ/, [ˈɫɑd̥ʋɑ] |
![]() | merkitös (Ala-Laukaa) | /ˈmerkitøs/, [ˈme̞rkĭtø̞̆z̠] | /ˈmerkitøs/, [ˈme̞rkĭtø̞̆z̠] |
![]() | merkitös (Soikkola) | /ˈmerkitøs/, [ˈme̞rɡ̊id̥ø̞ʒ̥] | /ˈmerkitøs/, [ˈme̞rɡ̊id̥ø̞ʒ̥] |
![]() | merkitsömmiin (merkitsömine) (Ala-Laukaa) | /ˈmerkit͡sømine/, [ˈme̞rkĭˌt͡s̠ø̞min] | /ˈmerkit͡sømine/, [ˈme̞rkĭˌt͡s̠ø̞min] |
![]() | merkitsömmiin (merkitsömiin) (Soikkola) | /ˈmerkit͡sømiːn/, [ˈme̞rɡ̊iˌt͡sø̞mˑiːn] | /ˈmerkit͡sømiːn/, [ˈme̞rɡ̊iˌt͡sø̞mˑiːn] |
![]() | metsä (Ala-Laukaa) | /ˈmet͡sæ/, [ˈme̞t͡s̠] | /ˈmet͡sæ/, [ˈme̞t͡s̠] |
![]() | metsä (Soikkola) | /ˈmet͡sæ/, [ˈme̞t͡sæ] | /ˈmet͡sæ/, [ˈme̞t͡sæ] |
![]() | Uus Voos (Ala-Laukaa) | /ˈuːs ˈʋoːs/, [ˈuːz̠ ˈʋoːz̠] | /ˈuːs ˈʋoːs/, [ˈuːz̠ ˈʋoːz̠] |
![]() | Uus Voos (Soikkola) | /ˈuːs ˈʋoːs/, [ˈuːʒ ˈʋo̝ːʒ̥] | /ˈuːs ˈʋoːs/, [ˈuːʒ ˈʋo̝ːʒ̥] |
![]() | iloistaa (ilojstaa) (Ala-Laukaa) | /ˈiloi̯stɑː/, [ˈiɫo̞i̯s̠tɑ] | /ˈiloi̯stɑː/, [ˈiɫo̞i̯s̠tɑ] |
![]() | iloistaa (ilojstaa) (Soikkola) | /ˈiloi̯stɑː/, [ˈiɫo̞i̯ʃtɑː] | /ˈiloi̯stɑː/, [ˈiɫo̞i̯ʃtɑː] |
![]() | hapukoitella (hapukojtella) (Ala-Laukaa) | /ˈhɑpukoi̯telːɑ/, [ˈhɑpuˌko̞i̯te̞ɫː] | /ˈhɑpukoi̯telːɑ/, [ˈhɑpuˌko̞i̯te̞ɫː] |
![]() | hapukoitella (hapukojtella) (Soikkola) | /ˈhɑpukoi̯telːɑ/, [ˈhɑb̥uˌɡ̊o̞i̯d̥e̞ɫːɑ] | /ˈhɑpukoi̯telːɑ/, [ˈhɑb̥uˌɡ̊o̞i̯d̥e̞ɫːɑ] |
![]() | epästyä (epäst'yä) (Ala-Laukaa) | /ˈepæstyæ/, [ˈe̞pæs̠ˌtʲyæ] | /ˈepæstyæ/, [ˈe̞pæs̠ˌtʲyæ] |
![]() | epästyä (epäst'yä) (Soikkola) | /ˈepæstyæ/, [ˈe̞b̥æʃˌtyæ] | /ˈepæstyæ/, [ˈe̞b̥æʃˌtyæ] |
![]() | Valja (Valj'a) (Ala-Laukaa) | /ˈʋɑlʲɑ/, [ˈʋɑlʲɑ] | /ˈʋɑlʲɑ/, [ˈʋɑlʲɑ] |
![]() | Valja (Valj'a) (Soikkola) | /ˈʋɑlʲɑ/, [ˈʋɑlʲɑ] | /ˈʋɑlʲɑ/, [ˈʋɑlʲɑ] |
![]() | guljaittaa (gulj'aittaa) (Ala-Laukaa) | /ˈɡulʲɑi̯tːɑː/, [ˈɡulʲːətːɑ] | /ˈɡulʲɑi̯tːɑː/, [ˈɡulʲːətːɑ] |
![]() | guljaittaa (gulj'aittaa) (Soikkola) | /ˈɡulʲɑi̯tːɑː/, [ˈkulʲˑɑi̯tːɑː] | /ˈɡulʲɑi̯tːɑː/, [ˈkulʲˑɑi̯tːɑː] |
![]() | rublja (rublj'a) (Ala-Laukaa) | /ˈrublʲɑ/, [ˈrublʲ] | /ˈrublʲɑ/, [ˈrublʲ] |
![]() | rublja (rublj'a) (Soikkola) | /ˈrublʲɑ/, [ˈrub̥lʲɑ] | /ˈrublʲɑ/, [ˈrub̥lʲɑ] |
![]() | vaaliamp (vaaliampi) (Ala-Laukaa) | /ˈʋɑːliɑmpi/, [ˈʋɑːlʲe̞mpʲ] | /ˈʋɑːliɑmpi/, [ˈʋɑːlʲe̞mpʲ] |
![]() | vaaliamp (vaaliamp) (Soikkola) | /ˈʋɑːliɑmp/, [ˈʋɑːliɑmb̥] | /ˈʋɑːliɑmp/, [ˈʋɑːliɑmb̥] |
![]() | levviämp (leviämpi) (Ala-Laukaa) | /ˈleʋiæmpi/, [ˈlʲe̞ʋːe̞mpʲ] | /ˈleʋiæmpi/, [ˈlʲe̞ʋːe̞mpʲ] |
![]() | levviämp (leviämp) (Soikkola) | /ˈleʋiæmp/, [ˈle̞ʋˑiæmb̥] | /ˈleʋiæmp/, [ˈle̞ʋˑiæmb̥] |
![]() | sikiäin (siki.äjne) (Ala-Laukaa) | /ˈsiki.æi̯ne/, [ˈs̠iki.əi̯n] | /ˈsiki.æi̯ne/, [ˈs̠iki.əi̯n] |
![]() | sikiäin (siki.äin) (Soikkola) | /ˈsiki.æi̯n/, [ˈʃiɡ̊i.æi̯n] | /ˈsiki.æi̯n/, [ˈʃiɡ̊i.æi̯n] |
![]() | sukulain (sukulajne) (Ala-Laukaa) | /ˈsukulɑi̯ne/, [ˈs̠ukuɫəi̯n] | /ˈsukulɑi̯ne/, [ˈs̠ukuɫəi̯n] |
![]() | sukulain (sukulain) (Soikkola) | /ˈsukulɑi̯n/, [ˈʃuɡ̊uɫɑi̯n] | /ˈsukulɑi̯n/, [ˈʃuɡ̊uɫɑi̯n] |
![]() | utjuga (utj'uga) (Ala-Laukaa) | /ˈutʲuɡɑ/, [ˈutʲuɡ] | /ˈutʲuɡɑ/, [ˈutʲuɡ] |
![]() | utjuga (utj'uuga) (Soikkola) | /ˈutʲuːɡɑ/, [ˈutʲˑuːɡ̊ɑ] | /ˈutʲuːɡɑ/, [ˈutʲˑuːɡ̊ɑ] |
![]() | yksslogain (yks-slogajne) (Ala-Laukaa) | /ˈyksˌsloɡɑi̯ne/, [ˈyks̠ˌs̠ɫo̞ɡɑi̯n] | /ˈyksˌsloɡɑi̯ne/, [ˈyks̠ˌs̠ɫo̞ɡɑi̯n] |
![]() | yksslogain (yks-slogain) (Soikkola) | /ˈyksˌsloɡɑi̯n/, [ˈykʃˌʃɫo̞kˑɑi̯n] | /ˈyksˌsloɡɑi̯n/, [ˈykʃˌʃɫo̞kˑɑi̯n] |
![]() | varajooni (Ala-Laukaa) | /ˈʋɑrɑjoːni/, [ˈʋɑrɑjo̞nʲ] | /ˈʋɑrɑjoːni/, [ˈʋɑrɑjo̞nʲ] |
![]() | varajooni (Soikkola) | /ˈʋɑrɑjoːni/, [ˈʋɑrɑˌjo̝ːni] | /ˈʋɑrɑjoːni/, [ˈʋɑrɑˌjo̝ːni] |
![]() | hyle (Ala-Laukaa) | /ˈhyle/, [ˈhylʲe̞] | /ˈhyle/, [ˈhylʲe̞] |
![]() | hyle (Soikkola) | /ˈhyle/, [ˈhyle̞] | /ˈhyle/, [ˈhyle̞] |
![]() | liitsatoin (liitsato/in) (Soikkola) | /ˈliːt͡sɑtoi̯n/, [ˈlʲiːt͡sɑd̥o̞i̯n] | /ˈliːt͡sɑtoi̯n/, [ˈlʲiːt͡sɑd̥o̞i̯n] |
![]() | taanolliin (taanolline) (Ala-Laukaa) | /ˈtɑːnolːine/, [ˈtɑːnŏ̞lʲˌlʲine̞] | /ˈtɑːnolːine/, [ˈtɑːnŏ̞lʲˌlʲine̞] |
![]() | metla (metla) (Soikkola) | /ˈmetlɑ/, [ˈme̞d̥ɫɑ] | /ˈmetlɑ/, [ˈme̞d̥ɫɑ] |
![]() | metla (metla) (Ala-Laukaa) | /ˈmetlɑ/, [ˈme̞dɫ] | /ˈmetlɑ/, [ˈme̞dɫ] |
local tests = require "Module:UnitTests"
local m_izh = require "Module:izh-pronunciation"
local function link_izh(term)
return '<span class="Latn" lang="izh">[[' .. term .. "#Ingrian|" .. term .. ']]</span>'
end
local function tag_IPA(transcription)
return '<span class="IPA">' .. transcription .. '</span>'
end
local function to_IPA(variety_code, form)
local result = m_izh.generate_one(form, variety_code)
return "/" .. result.broad .. "/, [" .. result.narrow .. "]"
end
function tests:test_phonetic()
local examples = {
{ "A", "koira", nil, "/ˈkoi̯rɑ/, [ˈko̞i̯r]" },
{ "S", "koira", nil, "/ˈkoi̯rɑ/, [ˈko̞i̯rɑ]" },
{ "A", "maata", "ma.ata", "/ˈmɑ.ɑtɑ/, [ˈmɑ.ɑt]" },
{ "S", "maata", "ma.ata", "/ˈmɑ.ɑtɑ/, [ˈmɑ.ɑd̥ɑ]" },
{ "A", "eno", nil, "/ˈeno/, [ˈe̞no̞]" },
{ "S", "eno", "enoj", "/ˈenoi̯/, [ˈe̞no̞i̯]" },
{ "A", "syän", nil, "/ˈsyæn/, [ˈs̠yæn]" },
{ "S", "syän", nil, "/ˈsyæn/, [ˈʃyæn]" },
{ "A", "paljo", nil, "/ˈpɑljo/, [ˈpɑlʲːŏ̞̥]" },
{ "S", "paljo", nil, "/ˈpɑljo/, [ˈpɑlʲjo̞]" },
{ "A", "valkia", nil, "/ˈʋɑlkiɑ/, [ˈʋɑɫke̞]" },
{ "S", "valkia", nil, "/ˈʋɑlkiɑ/, [ˈʋɑɫkiɑ]" },
{ "A", "näyttää", nil, "/ˈnæy̯tːæː/, [ˈnæy̯tːæ]" },
{ "S", "näyttää", nil, "/ˈnæy̯tːæː/, [ˈnæy̯tːæː]" },
{ "A", "leikata", "leikata", "/ˈlei̯kɑtɑ/, [ˈlʲe̞i̯kət]" },
{ "S", "leikata", "leikata", "/ˈlei̯kɑtɑ/, [ˈle̞i̯ɡ̊ɑd̥ɑ]" },
{ "A", "toest", "toesta", "/ˈtoestɑ/, [ˈto̞e̞s̠t]" },
{ "S", "toest", nil, "/ˈtoest/, [ˈto̞e̞ʃt]" },
{ "A", "latva", nil, "/ˈlɑtʋɑ/, [ˈɫɑdʋ]" },
{ "S", "latva", nil, "/ˈlɑtʋɑ/, [ˈɫɑd̥ʋɑ]" },
{ "A", "merkitös", nil, "/ˈmerkitøs/, [ˈme̞rkĭtø̞̆z̠]" },
{ "S", "merkitös", nil, "/ˈmerkitøs/, [ˈme̞rɡ̊id̥ø̞ʒ̥]" },
{ "A", "merkitsömmiin", "merkitsömine", "/ˈmerkit͡sømine/, [ˈme̞rkĭˌt͡s̠ø̞min]" },
{ "S", "merkitsömmiin", "merkitsömiin", "/ˈmerkit͡sømiːn/, [ˈme̞rɡ̊iˌt͡sø̞mˑiːn]" },
{ "A", "metsä", nil, "/ˈmet͡sæ/, [ˈme̞t͡s̠]" },
{ "S", "metsä", nil, "/ˈmet͡sæ/, [ˈme̞t͡sæ]" },
{ "A", "Uus Voos", nil, "/ˈuːs ˈʋoːs/, [ˈuːz̠ ˈʋoːz̠]" },
{ "S", "Uus Voos", nil, "/ˈuːs ˈʋoːs/, [ˈuːʒ ˈʋo̝ːʒ̥]" },
{ "A", "iloistaa", "ilojstaa", "/ˈiloi̯stɑː/, [ˈiɫo̞i̯s̠tɑ]" },
{ "S", "iloistaa", "ilojstaa", "/ˈiloi̯stɑː/, [ˈiɫo̞i̯ʃtɑː]" },
{ "A", "hapukoitella", "hapukojtella", "/ˈhɑpukoi̯telːɑ/, [ˈhɑpuˌko̞i̯te̞ɫː]" },
{ "S", "hapukoitella", "hapukojtella", "/ˈhɑpukoi̯telːɑ/, [ˈhɑb̥uˌɡ̊o̞i̯d̥e̞ɫːɑ]" },
{ "A", "epästyä", "epäst'yä", "/ˈepæstyæ/, [ˈe̞pæs̠ˌtʲyæ]" },
{ "S", "epästyä", "epäst'yä", "/ˈepæstyæ/, [ˈe̞b̥æʃˌtyæ]" },
{ "A", "Valja", "Valj'a", "/ˈʋɑlʲɑ/, [ˈʋɑlʲɑ]" },
{ "S", "Valja", "Valj'a", "/ˈʋɑlʲɑ/, [ˈʋɑlʲɑ]" },
{ "A", "guljaittaa", "gulj'aittaa", "/ˈɡulʲɑi̯tːɑː/, [ˈɡulʲːətːɑ]" },
{ "S", "guljaittaa", "gulj'aittaa", "/ˈɡulʲɑi̯tːɑː/, [ˈkulʲˑɑi̯tːɑː]" },
{ "A", "rublja", "rublj'a", "/ˈrublʲɑ/, [ˈrublʲ]" },
{ "S", "rublja", "rublj'a", "/ˈrublʲɑ/, [ˈrub̥lʲɑ]" },
{ "A", "vaaliamp", "vaaliampi", "/ˈʋɑːliɑmpi/, [ˈʋɑːlʲe̞mpʲ]" },
{ "S", "vaaliamp", "vaaliamp", "/ˈʋɑːliɑmp/, [ˈʋɑːliɑmb̥]" },
{ "A", "levviämp", "leviämpi", "/ˈleʋiæmpi/, [ˈlʲe̞ʋːe̞mpʲ]" },
{ "S", "levviämp", "leviämp", "/ˈleʋiæmp/, [ˈle̞ʋˑiæmb̥]" },
{ "A", "sikiäin", "siki.äjne", "/ˈsiki.æi̯ne/, [ˈs̠iki.əi̯n]" },
{ "S", "sikiäin", "siki.äin", "/ˈsiki.æi̯n/, [ˈʃiɡ̊i.æi̯n]" },
{ "A", "sukulain", "sukulajne", "/ˈsukulɑi̯ne/, [ˈs̠ukuɫəi̯n]" },
{ "S", "sukulain", "sukulain", "/ˈsukulɑi̯n/, [ˈʃuɡ̊uɫɑi̯n]" },
{ "A", "utjuga", "utj'uga", "/ˈutʲuɡɑ/, [ˈutʲuɡ]" },
{ "S", "utjuga", "utj'uuga", "/ˈutʲuːɡɑ/, [ˈutʲˑuːɡ̊ɑ]" },
{ "A", "yksslogain", "yks-slogajne", "/ˈyksˌsloɡɑi̯ne/, [ˈyks̠ˌs̠ɫo̞ɡɑi̯n]" },
{ "S", "yksslogain", "yks-slogain", "/ˈyksˌsloɡɑi̯n/, [ˈykʃˌʃɫo̞kˑɑi̯n]" },
{ "A", "varajooni", nil, "/ˈʋɑrɑjoːni/, [ˈʋɑrɑjo̞nʲ]" },
{ "S", "varajooni", nil, "/ˈʋɑrɑjoːni/, [ˈʋɑrɑˌjo̝ːni]" },
{ "A", "hyle", nil, "/ˈhyle/, [ˈhylʲe̞]" },
{ "S", "hyle", nil, "/ˈhyle/, [ˈhyle̞]" },
{ "S", "liitsatoin", "liitsato/in", "/ˈliːt͡sɑtoi̯n/, [ˈlʲiːt͡sɑd̥o̞i̯n]" },
{ "A", "taanolliin", "taanolline", "/ˈtɑːnolːine/, [ˈtɑːnŏ̞lʲˌlʲine̞]" },
{ "S", "metla", "metla", "/ˈmetlɑ/, [ˈme̞d̥ɫɑ]" },
{ "A", "metla", "metla", "/ˈmetlɑ/, [ˈme̞dɫ]" },
}
local options = { display = tag_IPA }
self:iterate(examples,
function (self, variety_code, term, respelling, expected)
self:equals(
link_izh(term)
.. (respelling and " (<kbd>" .. respelling .. "</kbd>)" or "") .. " (" .. m_izh.get_variety(variety_code) .. ")",
to_IPA(variety_code, respelling or term),
expected, options)
end)
end
return tests