def _write_gloss(self, converter, morpheme):
        """ Method to build the gloss nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            morpheme : graf.Node
                The parent node of the words
        """
        gloss_annotations = []
        for marker in converter.tier_mapper.tier_labels(poioapi.data.TIER_GLOSS):
            gloss_annotations.extend(converter.annotations_for_tier(marker,
                                                                    morpheme))

        for gloss in gloss_annotations:
            annotation = converter.annotation_value_for_annotation(gloss)
            # annotation = annotation.replace('-', '')

            splitter = '.'
            # Special gloss value
            if "?" in annotation and annotation != "?IPFV":
                return None

            # Select the splitter for the gloss values
            if ":" in annotation:
                splitter = ":"

            for token in annotation.split(splitter):
                gloss_list = self._annotation_mapper.validate_tag(
                    poioapi.data.TIER_GLOSS, token)

                if gloss_list is not None:
                    # if the tag is in the wrong tier, then put it in the
                    # correct tier. For now only detects POS
                    if isinstance(gloss_list, tuple) and len(gloss_list) == 2:
                        if gloss_list[0] in converter.tier_mapper.tier_labels(
                                poioapi.data.TIER_POS):
                            self._pos_element.text = gloss_list[1]
                    else:
                        self._split_destination_tags(gloss_list)

                else:
                    if not annotation.isupper():
                        if ":" in annotation:
                            annotation = annotation.split(":")[0]
                        elif annotation in "-":
                            annotation = annotation.split("-")[0]
                        elif "/" in annotation:
                            annotation = annotation.split("/")[0]
                        self._morpheme_element.set("meaning", annotation)
                    else:
                        self._annotation_mapper.add_to_missing(
                            poioapi.data.TIER_GLOSS, token)
dataset/ETHPy150Open cidles/poio-api/src/poioapi/io/typecraft.py/Writer._write_gloss/swapped operands of `in`