Module:mr-IPA/testcases

From Wiktionary, the free dictionary
Jump to navigation Jump to search

21 of 103 tests failed. (refresh)

TextExpectedActualComments
test_all:
Passedओळ (oḷ)oɭ̆oɭ̆ Syllabification: ⟨σ⟩, Word-final, Syllable-final: Vɭ̆
Passedवेळ (veḷ)ʋeɭ̆ʋeɭ̆ Syllabification: ⟨σ⟩, Word-final, Syllable-final: CVɭ̆
Failedदेऊळ (deūḷ)d̪e.uɭ̆d̪euɭ̆ Syllabification: ⟨σσ⟩, Word-final, Syllable-final: Vɭ̆
Passedकेवळ (kevaḷ)ke.ʋəɭ̆ke.ʋəɭ̆ Syllabification: ⟨σσ⟩, Word-final, Syllable-final: CVɭ̆
Failedआळशी (āḷśī)aɭ̆.ɕia.ɭ̆ɕi Syllabification: ⟨σσ⟩, Word-medial, Syllable-final: Vɭ̆
Failedकाळजी (kāḷjī)kaɭ̆.d͡ʑika.ɭ̆d͡ʑi Syllabification: ⟨σσ⟩, Word-medial, Syllable-final: CVɭ̆
Passedमुळे (muḷe)mu.ɭ̆emu.ɭ̆e Syllabification: ⟨σσ⟩, Word-medial, Syllable-initial: ɭ̆V
Passedआळस (āḷas)a.ɭ̆əsa.ɭ̆əs Syllabification: ⟨σσ⟩, Word-medial, syllable-initial: ɭ̆VC
Passedडिवच़णे (ḍivaċṇe)ɖi.ʋət͡s.ɳeɖi.ʋət͡s.ɳe /t͡s/: Word-medial
Passedखेच़णे (kheċṇe)kʰet͡s.ɳekʰet͡s.ɳe /t͡s/: Word-medial
Passedअंदाज़ (andāj̈)ən.d̪ad͡zən.d̪ad͡z /d͡z/: Word-final
Passedअंदाज़े (andāj̈e)ən.d̪a.d͡zeən.d̪a.d͡ze /d͡z/: Word-medial
Failedअवहेलना (avhelnā)əʋ.ɦel.naə.ʋʱel.na Murmur rule in broad transcription: ʋ.ɦ → ʋʱ
Passedमार्ग (mārga)maɾ.ɡəmaɾ.ɡə Word-final codas: Consonant clusters
Passedखुद्द (khudda)kʰud̪.d̪əkʰud̪.d̪ə Word-final codas: Geminates
Passedअख्खे (akhkhe)ək.kʰeək.kʰe Aspirated geminates: ख्ख
Passedपुठ्ठा (puṭhṭhā)puʈ.ʈʰapuʈ.ʈʰa Aspirated geminates: ठ्ठ
Passedईशान्य (īśānya)i.ɕan.jəi.ɕan.jə Non-word-final , : Independent
Passedऊर्फ (ūrpha)uɾ.pʰəuɾ.pʰə Non-word-final , : Independent
Passedश्रीमंत (śrīmanta)ɕɾi.mən.t̪əɕɾi.mən.t̪ə Non-word-final , : Diacritic
Passedपूर्ण (pūrṇa)puɾ.ɳəpuɾ.ɳə Non-word-final , : Diacritic
Passedऐक (aik)əikəik Diphthongs: Independent, Stem of ऐकणे
Passedहौस (haus)ɦəusɦəus Diphthongs: Diacritic
Passedऋण (ŕṇ)ɾuɳɾuɳ : Independent
Passedकृपा (kŕpā)kɾu.pakɾu.pa : Diacritic
Passedलाल (lāl)lallal : Checks if is /l/ or /l̪/
Passedऱ्हास (rhās)ɾʱasɾʱas Eyelash र: Word-initial ऱ्ह
Passedगोऱ्हा (gorhā)ɡo.ɾʱaɡo.ɾʱa Eyelash र: Word-medial ऱ्ह
Failedदऱ्या (daryā)d̪ə.ɾjad̪əɾ.ja Eyelash र: /ɾ/ moves to following syllable, Plural of दरी
Passedदर्या (daryā)d̪əɾ.jad̪əɾ.ja Eyelash र: For comparison with दऱ्या
Passedसांग (sāṅga)saŋ.ɡəsaŋ.ɡə /ŋ/: Stem-final, Stem of सांगणे
Passedकंगवा (kaṅgvā)kəŋ.ɡʋakəŋ.ɡʋa /ŋ/: Word-medial
Passedपलंग (palaṅga)pə.ləŋ.ɡəpə.ləŋ.ɡə /ŋ/: Word-final
Passedन्हावी (nhāvī)nʱa.ʋinʱa.ʋi Spelt mumured consonants: Word-initial न्ह
Passedतान्हा (tānhā)t̪a.nʱat̪a.nʱa Spelt mumured consonants: Word-medial न्ह
Passedम्हण (mhaṇ)mʱəɳmʱəɳ Spelt mumured consonants: Word-initial म्ह
Passedआम्ही (āmhī)a.mʱia.mʱi Spelt mumured consonants: Word-medial म्ह
Passedजिल्हा (jilhā)d͡ʑi.lʱad͡ʑi.lʱa Spelt mumured consonants: Word-medial ल्ह
Passedव्हा (vhā)ʋʱaʋʱa Spelt mumured consonants: Word-initial व्ह
Passedनव्हे (navhe)nə.ʋʱenə.ʋʱe Spelt mumured consonants: Word-medial व्ह
Passedकाय (kāy)kajkaj : ⟨σ⟩, Word-final, Syllable-final: Vj
Passedउदय (uday)u.d̪əju.d̪əj : ⟨σσ⟩, Word-final, Syllable-final: CVj
Passedआयते (āyte)aj.t̪eaj.t̪e : ⟨σσ⟩, Word-medial, Syllable-final: Vj
Passedफायदा (phāydā)pʰaj.d̪apʰaj.d̪a : ⟨σσ⟩, Word-medial, Syllable-final: CVj
Passedनायक (nāyak)na.jəkna.jək : ⟨σσ⟩, Word-medial, Syllable-initial: jVC
Failedज्ञान (jñān)d̪njand͡ʑnan ज्ञ: Word-initial
Failedआज्ञा (ājñā)ad̪.njaad͡ʑ.na ज्ञ: Word-medial
Passedमोह (moh)moɦmoɦ : ⟨σ⟩, Word-final
Passedॲप् (ĕp)æpæp English: Independent, app
Passedऍप् (ĕp)æpæp English: Independent, app
Passedऑस्ट्रेलिया (ŏsṭreliyā)ɔs.ʈɾe.li.jaɔs.ʈɾe.li.ja English: Independent, Australia
Passedबॅट (bĕṭ)bæʈbæʈ English: Diacritic, bat
Passedकॉट (kŏṭ)kɔʈkɔʈ English: Diacritic, cot
Passedबँक् (bĕṅk)bæŋkbæŋk English: अँ Diacritic, bank
Passedऑगस्ट् (ŏgasṭ)ɔ.ɡəsʈɔ.ɡəsʈ English: Syllable-final CC, August
Passedकाँग्रेस (kŏṅgres)kɔŋ.ɡɾeskɔŋ.ɡɾes English: आँ Diacritic, Congress, Hindi कांग्रेस
Failedहाँग्-काँग् (hŏṅg-kŏṅg)ɦɔŋɡ‿kɔŋɡɦɔŋɡ.kɔŋɡ English: Multiword term Hong Kong, Hindi हांग कांग
TextExpectedActualComments
test_phonetic:
Passed (ū) Final syllable high vowels: Independent, Open syllables
Passedमी ()miːmiː Final syllable high vowels: Diacritic, Open syllables
Passedतू ()t̪uːt̪uː Final syllable high vowels: Diacritic, Open syllables
Passedआणि (āṇi)a.ɳiːa.ɳiː Final syllable high vowels: Diacritic, Open syllables
Passedपरंतु (parantu)pə.ɾən.t̪uːpə.ɾən.t̪uː Final syllable high vowels: Diacritic, Open syllables
Passedउत (ut)uːt̪uːt̪ Final syllable high vowels: Independent, Closed syllables
Passedतपशील (tapśīl)t̪əp.ɕiːlt̪əp.ɕiːl Final syllable high vowels: Diacritic, Closed syllables
Passedकबूल (kabūl)kə.buːlkə.buːl Final syllable high vowels: Diacritic, Closed syllables
Passedगणित (gaṇit)ɡə.ɳiːt̪ɡə.ɳiːt̪ Final syllable high vowels: Diacritic, Closed syllables
Passedखुश (khuś)kʰuːɕkʰuːɕ Final syllable high vowels: Diacritic, Closed syllables
Passedदही (dahī)d̪ʱəiːd̪ʱəiː Murmur rule: Cə_i → Cʱəi, C = /d̪/
Passedबहीण (bahīṇ)bʱəiːɳbʱəiːɳ Murmur rule: Cə_i → Cʱəi, C = /b/, Konkani भैण
Passedवहिणी (vahiṇī)ʋʱəi.ɳiːʋʱəi.ɳiː Murmur rule: Cə_i → Cʱəi, C = /ʋ/
Failedबहुतेक (bahutek)bʱəu.t̪ekbʱu.t̪ek Murmur rule: Cə_u → Cʱəu
Passedजाहिरात (jāhirāt)d͡ʑʱai.ɾat̪d͡ʑʱai.ɾat̪ Murmur rule: Ca_i → Cʱai
Passedबाहुली (bāhulī)bʱau.liːbʱau.liː Murmur rule: Ca_u → Cʱau
Failedमनोहर (manohar)mə.nʱoɾmə.nʱoəɾ Murmur rule: C[≠ /ə/, /a/]ɦə → Cʱ[≠ /ə/, /a/]
Failedबेहद्द (behadda)bʱed̪.d̪əbʱeəd̪.d̪ə Murmur rule: C[≠ /ə/, /a/]ɦə → Cʱ[≠ /ə/, /a/]
Failedज़हाज़ (j̈ahāj̈)d͡zʱad͡zd͡zad͡z Murmur rule: Cə_[≠ /i/, /u/, /o/] → Cʱ[≠ /i/, /u/, /o/], C = /d͡z/, V₂ = /a/
Passedदहा (dahā)d̪ʱad̪ʱa Murmur rule: Cə_[≠ /i/, /u/, /o/] → Cʱ[≠ /i/, /u/, /o/], C = /d̪/, V₂ = /a/, Konkani धा
Passedउदाहरण (udāhraṇ)u.d̪ʱa.ɾəɳu.d̪ʱa.ɾəɳ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /d̪/, C₂ = /ɾ/
Passedनाहणे (nāhṇe)nʱa.ɳenʱa.ɳe Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /n/, C₂ = /ɳ/
Failedबाहेर (bāher)bʱa.eɾbʱaeɾ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /b/, V₂ = /e/
Failedमेहेरबानी (meherbānī)mʱeɾ.ba.niːmʱeeɾ.ba.niː Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /m/, V₁ = V₂ = /e/
Failedमोहीम (mohīm)mʱo.iːmmʱoiːm Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /m/, V₁ = /o/, V₂ = /i/
Passedराहणे (rāhṇe)ɾʱa.ɳeɾʱa.ɳe Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /ɾ/, C₂ = /ɳ/
Failedलिहिणे (lihiṇe)lʱi.ɳelʱii.ɳe Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /l/, V₁ = V₂ = /i/
Passedवाहणे (vāhṇe)ʋʱa.ɳeʋʱa.ɳe Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /ʋ/, C₂ = /ɳ/
Passedलहान (lahān)lʱanlʱan Murmur rule: Cə_[≠ /i/, /u/, /o/] → Cʱ[ ≠ /i/, /u/, /o/], C = /l/, V₂ = /a/, Konkani लान
Failedपहिले (pahile)pəi.lepi.le ɦ-deletion: ɦ → ∅ / Cə_i
Failedसही (sahī)səiːsiː ɦ-deletion: ɦ → ∅ / Cə_i
Failedगहू (gahū)ɡəuːɡuː ɦ-deletion: ɦ → ∅ / Cə_u
Passedकाही (kāhī)kaiːkaiː ɦ-deletion: ɦ → ∅ / Ca_i
Passedपाहुणा (pāhuṇā)pau.ɳapau.ɳa ɦ-deletion: ɦ → ∅ / Ca_u
Passedतहान (tahān)t̪ant̪an ɦ-deletion: ə, ɦ → ∅ / Cəɦ[≠ /i/, /u/, /o/], V₂ = /a/, Konkani तान
Passedशहर (śahar)ɕəɾɕəɾ ɦ-deletion: ə, ɦ → ∅ / Cəɦ[≠ /i/, /u/, /o/], C = /ɕ/, V₂ = /ə/
Passedसहन (sahan)sənsən ɦ-deletion: ə, ɦ → ∅ / Cəɦ[≠ /i/, /u/, /o/], C = /s/, V₂ = /ə/
Failedसाहेब (sāheb)sa.ebsaeb ɦ-deletion: a, ɦ → ∅ / Ca[≠ /i/, /u/, /o/]ɦ
Passedपेहलवान (pehalvān)pel.ʋanpel.ʋan ɦ-deletion: ɦə → ∅ / C[≠ /ə/, /a/]_ə, ɦ-deleted spelling: पेलवान
Passedसहमत (sahmat)sə.mət̪sə.mət̪ ɦ-deletion: ɦ → ∅ / C[≠ /ə/, /a/]_[≠ /ə/], V₁ = /ə/, C₂ = /m/
Passedचेहरा (cehrā)t͡ɕe.ɾat͡ɕe.ɾa ɦ-deletion: ɦ → ∅ / C[≠ /ə/, /a/]_[≠ /ə/], V₁ = /e/, C₂ = /ɾ/
Passedपाहणे (pāhṇe)pa.ɳepa.ɳe ɦ-deletion: ɦ → ∅ / C[≠ /ə/, /a/]_[≠ /ə/], V₁ = /a/, C₂ = /ɳ/
Passedवत्स (vatsa)ʋə.t͡sʰəʋə.t͡sʰə /t͡sʰ/: Word-final
Passedमत्सर (matsar)mə.t͡sʰəɾmə.t͡sʰəɾ /t͡sʰ/: Word-medial
Passedउत्साह (utsāh)u.t͡sʰau.t͡sʰa /t͡sʰ/: Word-medial with ɦ-deletion
Failedज्ञान (jñān)njand͡ʑnan ज्ञ: Word-initial

local tests = require("Module:UnitTests")
local m_IPA = require("Module:mr-IPA")

local function tag_IPA(IPA)
	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, false)),
		tag_IPA(expected),
		{ comment = comment }
	)
end

function tests:check_output_phonetic(term, expected, comment)
	self:equals(
		m_IPA.link(term),
		tag_IPA(m_IPA.toIPA(term, true)),
		tag_IPA(expected),
		{ comment = comment }
	)
end

function tests:test_all()
	examples = {

-- /Broad transcription/

-- Syllabification

-- ळ Syllabification
-- ळ Syllabification: Word-final, Syllable-final, One Syllable ⟨σ⟩
        { "ओळ", "oɭ̆", [=[ [[ळ]] Syllabification: ⟨σ⟩, Word-final, Syllable-final: Vɭ̆]=] },
        { "वेळ", "ʋeɭ̆", [=[ [[ळ]] Syllabification: ⟨σ⟩, Word-final, Syllable-final: CVɭ̆]=] },

-- ळ Syllabification: Word-final, Syllable-final, Two Syllables ⟨σσ⟩
        { "देऊळ", "d̪e.uɭ̆", [=[ [[ळ]] Syllabification: ⟨σσ⟩, Word-final, Syllable-final: Vɭ̆]=] },
        { "केवळ", "ke.ʋəɭ̆", [=[ [[ळ]] Syllabification: ⟨σσ⟩, Word-final, Syllable-final: CVɭ̆]=] },

--  ळ Syllabification: Word-medial, Syllable-final
        { "आळशी", "aɭ̆.ɕi", [=[ [[ळ]] Syllabification: ⟨σσ⟩, Word-medial, Syllable-final: Vɭ̆]=] },
        { "काळजी", "kaɭ̆.d͡ʑi", [=[ [[ळ]] Syllabification: ⟨σσ⟩, Word-medial, Syllable-final: CVɭ̆]=] },

-- ळ Syllabification: Word-medial, Syllable-initial
        { "मुळे", "mu.ɭ̆e", [=[ [[ळ]] Syllabification: ⟨σσ⟩, Word-medial, Syllable-initial: ɭ̆V]=] },
        { "आळस", "a.ɭ̆əs", [=[ [[ळ]] Syllabification: ⟨σσ⟩, Word-medial, syllable-initial: ɭ̆VC]=] },

-- /t͡s/, /d͡z/ syllabification: Word-medial
		{ "डिवच़णे", "ɖi.ʋət͡s.ɳe", [=[ /t͡s/: Word-medial]=] },
		{ "खेच़णे", "kʰet͡s.ɳe", [=[ /t͡s/: Word-medial]=] },
		{ "अंदाज़", "ən.d̪ad͡z", [=[ /d͡z/: Word-final]=] },
		{ "अंदाज़े", "ən.d̪a.d͡ze", [=[ /d͡z/: Word-medial]=] },

        { "अवहेलना", "əʋ.ɦel.na", [=[ Murmur rule in broad transcription: ʋ.ɦ → ʋʱ ]=] },

-- Consonant clusters and geminates

-- Word-final consonant clusters and geminates
		{ "मार्ग", "maɾ.ɡə", [=[ Word-final codas: Consonant clusters]=] },
		{ "खुद्द", "kʰud̪.d̪ə", [=[ Word-final codas: Geminates]=] },

-- Aspirated geminates: orthographic CʰCʰ → phonological CCʰ
        { "अख्खे", "ək.kʰe",  [=[ Aspirated geminates: ख्ख]=] },
        { "पुठ्ठा", "puʈ.ʈʰa", [=[ Aspirated geminates: ठ्ठ]=] },

-- Fundamental tests

-- Vowels

-- Non-word-final ई, ऊ
		{ "ईशान्य", "i.ɕan.jə", [=[ Non-word-final [[ई]], [[ऊ]]: [[ई]] Independent ]=] },
		{ "ऊर्फ", "uɾ.pʰə", [=[ Non-word-final [[ई]], [[ऊ]]: [[ऊ]] Independent ]=] },
		{ "श्रीमंत", "ɕɾi.mən.t̪ə", [=[ Non-word-final [[ई]], [[ऊ]]: [[ई]] Diacritic ]=] },
		{ "पूर्ण", "puɾ.ɳə", [=[ Non-word-final [[ई]], [[ऊ]]: [[ऊ]] Diacritic ]=] },

-- Diphthongs
        { "ऐक", "əik", [=[ Diphthongs: [[ऐ]] Independent, Stem of [[ऐकणे]]]=] },
        { "हौस", "ɦəus", [=[ Diphthongs: [[औ]] Diacritic]=] },

-- ऋ
        { "ऋण", "ɾuɳ", [=[ [[ऋ]]: Independent]=] },
        { "कृपा", "kɾu.pa", [=[ [[ऋ]]: Diacritic]=] },

-- Consonants

-- ल
        { "लाल", "lal", [=[ [[ल]]: Checks if [[ल]] is /l/ or /l̪/]=]},

-- ऱ् (Eyelash र)
        { "ऱ्हास", "ɾʱas", [=[ Eyelash र: Word-initial ऱ्ह]=] },
        { "गोऱ्हा", "ɡo.ɾʱa", [=[ Eyelash र: Word-medial ऱ्ह]=] },
        { "दऱ्या", "d̪ə.ɾja", [=[ Eyelash र: /ɾ/ moves to following syllable, Plural of [[दरी]]]=] },
        { "दर्या", "d̪əɾ.ja", [=[ Eyelash र: For comparison with दऱ्या]=] }, 

-- /ŋ/: Velar nasal
        { "सांग", "saŋ.ɡə", [=[ /ŋ/: Stem-final, Stem of [[सांगणे]]]=] },
        { "कंगवा", "kəŋ.ɡʋa", [=[ /ŋ/: Word-medial]=] },
        { "पलंग", "pə.ləŋ.ɡə",  [=[ /ŋ/: Word-final]=] },

-- Spelt mumured consonants: न्ह, म्ह, ल्ह, व्ह
        { "न्हावी", "nʱa.ʋi", [=[ Spelt mumured consonants: Word-initial न्ह]=] },
        { "तान्हा", "t̪a.nʱa", [=[ Spelt mumured consonants: Word-medial न्ह]=] },
        { "म्हण", "mʱəɳ", [=[ Spelt mumured consonants: Word-initial म्ह]=] },
        { "आम्ही", "a.mʱi", [=[ Spelt mumured consonants: Word-medial म्ह]=] },
        { "जिल्हा", "d͡ʑi.lʱa", [=[ Spelt mumured consonants: Word-medial ल्ह]=] },
        { "व्हा", "ʋʱa", [=[ Spelt mumured consonants: Word-initial व्ह]=] },
        { "नव्हे", "nə.ʋʱe", [=[ Spelt mumured consonants: Word-medial व्ह]=] },

-- य 
-- य: Word-final
        { "काय", "kaj", [=[ [[य]]: ⟨σ⟩, Word-final, Syllable-final: Vj]=] },
        { "उदय", "u.d̪əj", [=[ [[य]]: ⟨σσ⟩, Word-final, Syllable-final: CVj]=] },

-- य: Word-medial
        { "आयते", "aj.t̪e", [=[ [[य]]: ⟨σσ⟩, Word-medial, Syllable-final: Vj]=] },
        { "फायदा", "pʰaj.d̪a", [=[ [[य]]: ⟨σσ⟩, Word-medial, Syllable-final: CVj]=] },
        { "नायक", "na.jək", [=[ [[य]]: ⟨σσ⟩, Word-medial, Syllable-initial: jVC]=] },

-- ज्ञ
		{ "ज्ञान", "d̪njan", [=[ [[ज्ञ]]: Word-initial]=] },
		{ "आज्ञा", "ad̪.nja", [=[ [[ज्ञ]]: Word-medial]=] },

-- ह: Word-final 
		{ "मोह", "moɦ", [=[ [[ह]]: ⟨σ⟩, Word-final]=] },

-- English borrowings (See [[MOD:mr-translit]] for details)
        { "ॲप्", "æp", [=[ English: [[ॲ]] Independent, [[app]]]=] },
        { "ऍप्", "æp", [=[ English: [[ऍ]] Independent, [[app]]]=] },
        { "ऑस्ट्रेलिया", "ɔs.ʈɾe.li.ja", [=[ English: [[ऑ]] Independent, [[Australia]] ]=] },
        { "बॅट", "bæʈ", [=[ English: [[ॲ]] Diacritic, [[bat]]]=] },
        { "कॉट", "kɔʈ", [=[ English: [[ऑ]] Diacritic, [[cot]]]=] },
        { "बँक्", "bæŋk", [=[ English: [[अँ]] Diacritic, [[bank]]]=] }, 
        { "ऑगस्ट्", "ɔ.ɡəsʈ", [=[ English: Syllable-final CC, [[August]] ]=] },
        { "काँग्रेस", "kɔŋ.ɡɾes", [=[ English: आँ Diacritic, [[Congress]], Hindi [[कांग्रेस]] ]=] },
        { "हाँग्-काँग्", "ɦɔŋɡ‿kɔŋɡ", [=[ English: Multiword term [[Hong Kong]], Hindi [[हांग कांग]] ]=] }, 
        
}--[[	Copy the following to add more examples:
		{ "", "" },
]]
	
	tests:iterate(examples, "check_output")
end

function tests:test_phonetic()
	examples = {

-- [Narrow transcription]

-- Final syllable high vowels

-- Open syllables
        { "ऊ", "uː", [=[ Final syllable high vowels: [[ऊ]] Independent, Open syllables ]=] },
		{ "मी", "miː", [=[ Final syllable high vowels: [[ई]] Diacritic, Open syllables ]=] },
        { "तू", "t̪uː", [=[ Final syllable high vowels: [[ऊ]] Diacritic, Open syllables ]=] },
        { "आणि", "a.ɳiː", [=[ Final syllable high vowels: [[इ]] Diacritic, Open syllables ]=]  },
        { "परंतु", "pə.ɾən.t̪uː", [=[ Final syllable high vowels: [[उ]] Diacritic, Open syllables ]=]  },

-- Closed syllables
        { "उत", "uːt̪", [=[ Final syllable high vowels: [[उ]] Independent, Closed syllables ]=]  },
        { "तपशील", "t̪əp.ɕiːl", [=[ Final syllable high vowels: [[ई]] Diacritic, Closed syllables ]=]  },
        { "कबूल", "kə.buːl", [=[ Final syllable high vowels: [[ऊ]] Diacritic, Closed syllables ]=]  },
        { "गणित", "ɡə.ɳiːt̪", [=[ Final syllable high vowels: [[इ]] Diacritic, Closed syllables ]=]  },
        { "खुश", "kʰuːɕ", [=[ Final syllable high vowels: [[उ]] Diacritic, Closed syllables ]=]  },

-- Murmur rule and ɦ-deletion in the environment CV₁_[V₂, C₂]

-- Murmur rule: result has Cʱ
-- C murmur class = /m/, /n/, /l/, /ʋ/, /ɾ/, /d͡ʑ/, d͡z, /d̪/, /b/
-- V₁ = /ə/, /a/

-- V₂ = /i/, /u/
        { "दही", "d̪ʱəiː", [=[ Murmur rule: Cə_i → Cʱəi, C = /d̪/ ]=] },
        { "बहीण", "bʱəiːɳ", [=[ Murmur rule: Cə_i → Cʱəi, C = /b/, Konkani [[भैण]] ]=] },
        { "वहिणी", "ʋʱəi.ɳiː", [=[ Murmur rule: Cə_i → Cʱəi, C = /ʋ/ ]=] },
        { "बहुतेक", "bʱəu.t̪ek", [=[ Murmur rule: Cə_u → Cʱəu]=] },
        { "जाहिरात", "d͡ʑʱai.ɾat̪", [=[ Murmur rule: Ca_i → Cʱai]=] },
        { "बाहुली", "bʱau.liː", [=[ Murmur rule: Ca_u → Cʱau]=] },

-- V₁ ≠ /ə/, /a/, V₂ = /ə/
        { "मनोहर", "mə.nʱoɾ", [=[ Murmur rule: C[≠ /ə/, /a/]ɦə → Cʱ[≠ /ə/, /a/] ]=] },
        { "बेहद्द", "bʱed̪.d̪ə", [=[ Murmur rule: C[≠ /ə/, /a/]ɦə → Cʱ[≠ /ə/, /a/] ]=] },

-- [V₂, C₂] ≠ /i/, /u/, /o/
        { "ज़हाज़", "d͡zʱad͡z", [=[ Murmur rule: Cə_[≠ /i/, /u/, /o/] → Cʱ[≠ /i/, /u/, /o/], C = /d͡z/, V₂ = /a/ ]=] }, 
        { "दहा", "d̪ʱa",  [=[ Murmur rule: Cə_[≠ /i/, /u/, /o/] → Cʱ[≠ /i/, /u/, /o/], C = /d̪/, V₂ = /a/, Konkani [[धा]] ]=] },
        { "उदाहरण", "u.d̪ʱa.ɾəɳ",  [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /d̪/, C₂ = /ɾ/ ]=] },
        { "नाहणे", "nʱa.ɳe", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /n/, C₂ = /ɳ/ ]=] },
        { "बाहेर", "bʱa.eɾ", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /b/, V₂ = /e/ ]=] },
        { "मेहेरबानी", "mʱeɾ.ba.niː", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /m/, V₁ = V₂ = /e/ ]=] },
        { "मोहीम", "mʱo.iːm", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /m/, V₁ = /o/, V₂ = /i/ ]=] },
        { "राहणे", "ɾʱa.ɳe", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /ɾ/, C₂ = /ɳ/ ]=] },
        { "लिहिणे", "lʱi.ɳe", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /l/, V₁ = V₂ = /i/ ]=] },
        { "वाहणे", "ʋʱa.ɳe", [=[ Murmur rule: Ca_[≠ /i/, /u/, /o/ → Cʱ[≠ /i/, /u/, /o/], C = /ʋ/, C₂ = /ɳ/ ]=] },
        { "लहान", "lʱan", [=[ Murmur rule: Cə_[≠ /i/, /u/, /o/] → Cʱ[ ≠ /i/, /u/, /o/], C = /l/, V₂ = /a/, Konkani [[लान]] ]=] },

-- ɦ-deletion: ɦ → ∅ 
-- C ≠ C murmur class

-- V₁ = /ə/, /a/, V₂ = /i/, /u/

        { "पहिले", "pəi.le", [=[ ɦ-deletion: ɦ → ∅ / Cə_i ]=] },
        { "सही", "səiː", [=[ ɦ-deletion: ɦ → ∅ / Cə_i ]=] },
 		{ "गहू", "ɡəuː", [=[ ɦ-deletion: ɦ → ∅ / Cə_u ]=] },
        { "काही", "kaiː", [=[ ɦ-deletion: ɦ → ∅ / Ca_i ]=] },
        { "पाहुणा", "pau.ɳa", [=[ ɦ-deletion: ɦ → ∅ / Ca_u ]=] },

-- V₁ = /ə/, /a/, V₂ ≠ /i/, /u/, /o/
        { "तहान", "t̪an", [=[ ɦ-deletion: ə, ɦ → ∅ / Cəɦ[≠ /i/, /u/, /o/], V₂ = /a/, Konkani [[तान]] ]=] },
        { "शहर", "ɕəɾ",  [=[ ɦ-deletion: ə, ɦ → ∅ / Cəɦ[≠ /i/, /u/, /o/], C = /ɕ/, V₂ = /ə/ ]=] },
        { "सहन", "sən",  [=[ ɦ-deletion: ə, ɦ → ∅ / Cəɦ[≠ /i/, /u/, /o/], C = /s/, V₂ = /ə/ ]=] },
        { "साहेब", "sa.eb", [=[ ɦ-deletion: a, ɦ → ∅ / Ca[≠ /i/, /u/, /o/]ɦ ]=] },

-- V₁ ≠ /ə/, /a/, V₂ = /ə/
        { "पेहलवान", "pel.ʋan", [=[ ɦ-deletion: ɦə → ∅ / C[≠ /ə/, /a/]_ə, ɦ-deleted spelling: [[पेलवान]] ]=] },

-- [V₂, C₂] ≠ /ə/, /i/, /u/, /o/
        { "सहमत", "sə.mət̪", [=[ ɦ-deletion: ɦ → ∅ / C[≠ /ə/, /a/]_[≠ /ə/], V₁ = /ə/, C₂ = /m/ ]=] },
        { "चेहरा", "t͡ɕe.ɾa", [=[ ɦ-deletion: ɦ → ∅ / C[≠ /ə/, /a/]_[≠ /ə/], V₁ = /e/, C₂ = /ɾ/ ]=] },
        { "पाहणे", "pa.ɳe", [=[ ɦ-deletion: ɦ → ∅ / C[≠ /ə/, /a/]_[≠ /ə/], V₁ = /a/, C₂ = /ɳ/ ]=] },

-- /t͡sʰ/: Any sequence of /ts/ → /t͡sʰ/
        { "वत्स", "ʋə.t͡sʰə", [=[ /t͡sʰ/: Word-final ]=] },
        { "मत्सर", "mə.t͡sʰəɾ", [=[ /t͡sʰ/: Word-medial ]=] },
        { "उत्साह", "u.t͡sʰa", [=[ /t͡sʰ/: Word-medial with ɦ-deletion ]=] },

-- ज्ञ
		{ "ज्ञान", "njan", [=[ [[ज्ञ]]: Word-initial]=] },
}
	
	tests:iterate(examples, "check_output_phonetic")
end

return tests