# Path: praatio/textgrid.py
# def openTextgrid(
#     fnFullPath: str,
#     includeEmptyIntervals: bool,
#     reportingMode: Literal["silence", "warning", "error"] = "warning",
#     duplicateNamesMode: Literal["error", "rename"] = "error",
# ) -> Textgrid:
# def _dictionaryToTg(
#     tgAsDict: dict, reportingMode: Literal["silence", "warning", "error"]
# ) -> Textgrid:


import os
from os.path import join
from praatio import textgrid
        "nouns",
        [
            entryList[1],
        ],
    )
)
bobbyTG.addTier(
    textgrid.IntervalTier(
        "verbs",
        [
            entryList[2],
        ],
    )
)
bobbyTG.addTier(textgrid.IntervalTier("subjects", entryList[3:5]))

# Let's save it, in case you want to see it
bobbyTG.save(
    join(outputPath, "mergeExample_bobby_words_split.TextGrid"), "short_textgrid", True
)


# And we'll do the same for mary's textgrid
tg = textgrid.openTextgrid(join(path, "mary.TextGrid"), includeEmptyIntervals=False)
wordTier = tg.tierDict["word"]
entryList = wordTier.entryList

maryTG = textgrid.Textgrid()
maryTG.addTier(tg.tierDict["phone"])
maryTG.addTier(

# Path: praatio/textgrid.py
# def openTextgrid(
#     fnFullPath: str,
#     includeEmptyIntervals: bool,
#     reportingMode: Literal["silence", "warning", "error"] = "warning",
#     duplicateNamesMode: Literal["error", "rename"] = "error",
# ) -> Textgrid:
# def _dictionaryToTg(
#     tgAsDict: dict, reportingMode: Literal["silence", "warning", "error"]
# ) -> Textgrid:


# Path: examples/merge_tiers.py
import os
from os.path import join
from praatio import textgrid

        "nouns",
        [
            entryList[1],
        ],
    )
)
bobbyTG.addTier(
    textgrid.IntervalTier(
        "verbs",
        [
            entryList[2],
        ],
    )
)
bobbyTG.addTier(textgrid.IntervalTier("subjects", entryList[3:5]))

# Let's save it, in case you want to see it
bobbyTG.save(
    join(outputPath, "mergeExample_bobby_words_split.TextGrid"), "short_textgrid", True
)


# And we'll do the same for mary's textgrid
tg = textgrid.openTextgrid(join(path, "mary.TextGrid"), includeEmptyIntervals=False)
wordTier = tg.tierDict["word"]
entryList = wordTier.entryList

maryTG = textgrid.Textgrid()
maryTG.addTier(tg.tierDict["phone"])
maryTG.addTier(

    textgrid.IntervalTier(