Module:izh-pronunciation/testcases

Hello, you have come here looking for the meaning of the word Module:izh-pronunciation/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:izh-pronunciation/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:izh-pronunciation/testcases in singular and plural. Everything you need to know about the word Module:izh-pronunciation/testcases you have here. The definition of the word Module:izh-pronunciation/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:izh-pronunciation/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

All tests passed. (refresh)

TextExpectedActual
test_phonetic:
Passedkoira (Ala-Laukaa)/ˈkoi̯rɑ/, /ˈkoi̯rɑ/,
Passedkoira (Soikkola)/ˈkoi̯rɑ/, /ˈkoi̯rɑ/,
Passedmaata (ma.ata) (Ala-Laukaa)/ˈmɑ.ɑtɑ/, /ˈmɑ.ɑtɑ/,
Passedmaata (ma.ata) (Soikkola)/ˈmɑ.ɑtɑ/, /ˈmɑ.ɑtɑ/,
Passedeno (Ala-Laukaa)/ˈeno/, /ˈeno/,
Passedeno (enoj) (Soikkola)/ˈenoi̯/, /ˈenoi̯/,
Passedsyän (Ala-Laukaa)/ˈsyæn/, /ˈsyæn/,
Passedsyän (Soikkola)/ˈsyæn/, /ˈsyæn/,
Passedpaljo (Ala-Laukaa)/ˈpɑljo/, /ˈpɑljo/,
Passedpaljo (Soikkola)/ˈpɑljo/, /ˈpɑljo/,
Passedvalkia (Ala-Laukaa)/ˈʋɑlkiɑ/, /ˈʋɑlkiɑ/,
Passedvalkia (Soikkola)/ˈʋɑlkiɑ/, /ˈʋɑlkiɑ/,
Passednäyttää (Ala-Laukaa)/ˈnæy̯tːæː/, /ˈnæy̯tːæː/,
Passednäyttää (Soikkola)/ˈnæy̯tːæː/, /ˈnæy̯tːæː/,
Passedleikata (leikata) (Ala-Laukaa)/ˈlei̯kɑtɑ/, /ˈlei̯kɑtɑ/,
Passedleikata (leikata) (Soikkola)/ˈlei̯kɑtɑ/, /ˈlei̯kɑtɑ/,
Passedtoest (toesta) (Ala-Laukaa)/ˈtoestɑ/, /ˈtoestɑ/,
Passedtoest (Soikkola)/ˈtoest/, /ˈtoest/,
Passedlatva (Ala-Laukaa)/ˈlɑtʋɑ/, /ˈlɑtʋɑ/,
Passedlatva (Soikkola)/ˈlɑtʋɑ/, /ˈlɑtʋɑ/,
Passedmerkitös (Ala-Laukaa)/ˈmerkitøs/, /ˈmerkitøs/,
Passedmerkitös (Soikkola)/ˈmerkitøs/, /ˈmerkitøs/,
Passedmerkitsömmiin (merkitsömine) (Ala-Laukaa)/ˈmerkit͡sømine/, /ˈmerkit͡sømine/,
Passedmerkitsömmiin (merkitsömiin) (Soikkola)/ˈmerkit͡sømiːn/, /ˈmerkit͡sømiːn/,
Passedmetsä (Ala-Laukaa)/ˈmet͡sæ/, /ˈmet͡sæ/,
Passedmetsä (Soikkola)/ˈmet͡sæ/, /ˈmet͡sæ/,
PassedUus Voos (Ala-Laukaa)/ˈuːs ˈʋoːs/, /ˈuːs ˈʋoːs/,
PassedUus Voos (Soikkola)/ˈuːs ˈʋoːs/, /ˈuːs ˈʋoːs/,
Passediloistaa (ilojstaa) (Ala-Laukaa)/ˈiloi̯stɑː/, /ˈiloi̯stɑː/,
Passediloistaa (ilojstaa) (Soikkola)/ˈiloi̯stɑː/, /ˈiloi̯stɑː/,
Passedhapukoitella (hapukojtella) (Ala-Laukaa)/ˈhɑpukoi̯telːɑ/, /ˈhɑpukoi̯telːɑ/,
Passedhapukoitella (hapukojtella) (Soikkola)/ˈhɑpukoi̯telːɑ/, /ˈhɑpukoi̯telːɑ/,
Passedepästyä (epäst'yä) (Ala-Laukaa)/ˈepæstyæ/, /ˈepæstyæ/,
Passedepästyä (epäst'yä) (Soikkola)/ˈepæstyæ/, /ˈepæstyæ/,
PassedValja (Valj'a) (Ala-Laukaa)/ˈʋɑlʲɑ/, /ˈʋɑlʲɑ/,
PassedValja (Valj'a) (Soikkola)/ˈʋɑlʲɑ/, /ˈʋɑlʲɑ/,
Passedguljaittaa (gulj'aittaa) (Ala-Laukaa)/ˈɡulʲɑi̯tːɑː/, /ˈɡulʲɑi̯tːɑː/,
Passedguljaittaa (gulj'aittaa) (Soikkola)/ˈɡulʲɑi̯tːɑː/, /ˈɡulʲɑi̯tːɑː/,
Passedrublja (rublj'a) (Ala-Laukaa)/ˈrublʲɑ/, /ˈrublʲɑ/,
Passedrublja (rublj'a) (Soikkola)/ˈrublʲɑ/, /ˈrublʲɑ/,
Passedvaaliamp (vaaliampi) (Ala-Laukaa)/ˈʋɑːliɑmpi/, /ˈʋɑːliɑmpi/,
Passedvaaliamp (vaaliamp) (Soikkola)/ˈʋɑːliɑmp/, /ˈʋɑːliɑmp/,
Passedlevviämp (leviämpi) (Ala-Laukaa)/ˈleʋiæmpi/, /ˈleʋiæmpi/,
Passedlevviämp (leviämp) (Soikkola)/ˈleʋiæmp/, /ˈleʋiæmp/,
Passedsikiäin (siki.äjne) (Ala-Laukaa)/ˈsiki.æi̯ne/, /ˈsiki.æi̯ne/,
Passedsikiäin (siki.äin) (Soikkola)/ˈsiki.æi̯n/, /ˈsiki.æi̯n/,
Passedsukulain (sukulajne) (Ala-Laukaa)/ˈsukulɑi̯ne/, /ˈsukulɑi̯ne/,
Passedsukulain (sukulain) (Soikkola)/ˈsukulɑi̯n/, /ˈsukulɑi̯n/,
Passedutjuga (utj'uga) (Ala-Laukaa)/ˈutʲuɡɑ/, /ˈutʲuɡɑ/,
Passedutjuga (utj'uuga) (Soikkola)/ˈutʲuːɡɑ/, /ˈutʲuːɡɑ/,
Passedyksslogain (yks-slogajne) (Ala-Laukaa)/ˈyksˌsloɡɑi̯ne/, /ˈyksˌsloɡɑi̯ne/,
Passedyksslogain (yks-slogain) (Soikkola)/ˈyksˌsloɡɑi̯n/, /ˈyksˌsloɡɑi̯n/,
Passedvarajooni (Ala-Laukaa)/ˈʋɑrɑjoːni/, /ˈʋɑrɑjoːni/,
Passedvarajooni (Soikkola)/ˈʋɑrɑjoːni/, /ˈʋɑrɑjoːni/,
Passedhyle (Ala-Laukaa)/ˈhyle/, /ˈhyle/,
Passedhyle (Soikkola)/ˈhyle/, /ˈhyle/,
Passedliitsatoin (liitsato/in) (Soikkola)/ˈliːt͡sɑtoi̯n/, /ˈliːt͡sɑtoi̯n/,
Passedtaanolliin (taanolline) (Ala-Laukaa)/ˈtɑːnolːine/, /ˈtɑːnolːine/,
Passedmetla (metla) (Soikkola)/ˈmetlɑ/, /ˈmetlɑ/,
Passedmetla (metla) (Ala-Laukaa)/ˈmetlɑ/, /ˈmetlɑ/,

local tests = require "Module:UnitTests"
local m_izh = require "Module:izh-pronunciation"

local function link_izh(term)
	return '<span class="Latn" lang="izh">]</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 .. "/, "
end

function tests:test_phonetic()
	local examples = {
		{ "A", "koira", nil, "/ˈkoi̯rɑ/, " },
		{ "S", "koira", nil, "/ˈkoi̯rɑ/, " },
		{ "A", "maata", "ma.ata", "/ˈmɑ.ɑtɑ/, " },
		{ "S", "maata", "ma.ata", "/ˈmɑ.ɑtɑ/, " },
		{ "A", "eno", nil, "/ˈeno/, " },
		{ "S", "eno", "enoj", "/ˈenoi̯/, " },
		{ "A", "syän", nil, "/ˈsyæn/, " },
		{ "S", "syän", nil, "/ˈsyæn/, " },
		{ "A", "paljo", nil, "/ˈpɑljo/, " },
		{ "S", "paljo", nil, "/ˈpɑljo/, " },
		{ "A", "valkia", nil, "/ˈʋɑlkiɑ/, " },
		{ "S", "valkia", nil, "/ˈʋɑlkiɑ/, " },
		{ "A", "näyttää", nil, "/ˈnæy̯tːæː/, " },
		{ "S", "näyttää", nil, "/ˈnæy̯tːæː/, " },
		{ "A", "leikata", "leikata", "/ˈlei̯kɑtɑ/, " },
		{ "S", "leikata", "leikata", "/ˈlei̯kɑtɑ/, " },
		{ "A", "toest", "toesta", "/ˈtoestɑ/, " },
		{ "S", "toest", nil, "/ˈtoest/, " },
		{ "A", "latva", nil, "/ˈlɑtʋɑ/, " },
		{ "S", "latva", nil, "/ˈlɑtʋɑ/, " },
		{ "A", "merkitös", nil, "/ˈmerkitøs/, " },
		{ "S", "merkitös", nil, "/ˈmerkitøs/, " },
		{ "A", "merkitsömmiin", "merkitsömine", "/ˈmerkit͡sømine/, " },
		{ "S", "merkitsömmiin", "merkitsömiin", "/ˈmerkit͡sømiːn/, " },
		{ "A", "metsä", nil, "/ˈmet͡sæ/, " },
		{ "S", "metsä", nil, "/ˈmet͡sæ/, " },
		{ "A", "Uus Voos", nil, "/ˈuːs ˈʋoːs/, " },
		{ "S", "Uus Voos", nil, "/ˈuːs ˈʋoːs/, " },
		{ "A", "iloistaa", "ilojstaa", "/ˈiloi̯stɑː/, " },
		{ "S", "iloistaa", "ilojstaa", "/ˈiloi̯stɑː/, " },
		{ "A", "hapukoitella", "hapukojtella", "/ˈhɑpukoi̯telːɑ/, " },
		{ "S", "hapukoitella", "hapukojtella", "/ˈhɑpukoi̯telːɑ/, " },
		{ "A", "epästyä", "epäst'yä", "/ˈepæstyæ/, " },
		{ "S", "epästyä", "epäst'yä", "/ˈepæstyæ/, " },
		{ "A", "Valja", "Valj'a", "/ˈʋɑlʲɑ/, " },
		{ "S", "Valja", "Valj'a", "/ˈʋɑlʲɑ/, " },
		{ "A", "guljaittaa", "gulj'aittaa", "/ˈɡulʲɑi̯tːɑː/, " },
		{ "S", "guljaittaa", "gulj'aittaa", "/ˈɡulʲɑi̯tːɑː/, " },
		{ "A", "rublja", "rublj'a", "/ˈrublʲɑ/, " },
		{ "S", "rublja", "rublj'a", "/ˈrublʲɑ/, " },
		{ "A", "vaaliamp", "vaaliampi", "/ˈʋɑːliɑmpi/, " },
		{ "S", "vaaliamp", "vaaliamp", "/ˈʋɑːliɑmp/, " },
		{ "A", "levviämp", "leviämpi", "/ˈleʋiæmpi/, " },
		{ "S", "levviämp", "leviämp", "/ˈleʋiæmp/, " },
		{ "A", "sikiäin", "siki.äjne", "/ˈsiki.æi̯ne/, " },
		{ "S", "sikiäin", "siki.äin", "/ˈsiki.æi̯n/, " },
		{ "A", "sukulain", "sukulajne", "/ˈsukulɑi̯ne/, " },
		{ "S", "sukulain", "sukulain", "/ˈsukulɑi̯n/, " },
		{ "A", "utjuga", "utj'uga", "/ˈutʲuɡɑ/, " },
		{ "S", "utjuga", "utj'uuga", "/ˈutʲuːɡɑ/, " },
		{ "A", "yksslogain", "yks-slogajne", "/ˈyksˌsloɡɑi̯ne/, " },
		{ "S", "yksslogain", "yks-slogain", "/ˈyksˌsloɡɑi̯n/, " },
		{ "A", "varajooni", nil, "/ˈʋɑrɑjoːni/, " },
		{ "S", "varajooni", nil, "/ˈʋɑrɑjoːni/, " },
		{ "A", "hyle", nil, "/ˈhyle/, " },
		{ "S", "hyle", nil, "/ˈhyle/, " },
		{ "S", "liitsatoin", "liitsato/in", "/ˈliːt͡sɑtoi̯n/, " },
		{ "A", "taanolliin", "taanolline", "/ˈtɑːnolːine/, " },
		{ "S", "metla", "metla", "/ˈmetlɑ/, " },
		{ "A", "metla", "metla", "/ˈmetlɑ/, " },
	}
	
	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