def _write_pos(self, converter, parent_node):
        """ Method to build the word nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            word : graf.Node
                The parent node of the part of speech tags
        """

        pos_annotations = []
        for marker in converter.tier_mapper.tier_labels(poioapi.data.TIER_POS):
            pos_annotations.extend(converter.annotations_for_tier(marker,
                                                                  parent_node))

        if len(pos_annotations) == 1:
            annotation = converter.annotation_value_for_annotation(
                pos_annotations[0])
            if not any((c in annotation) for c in "()/\.-?*"):
                mapping = self._annotation_mapper.validate_tag(
                    poioapi.data.TIER_POS, annotation)
                if mapping is None:
                    self._annotation_mapper.add_to_missing(
                        poioapi.data.TIER_POS, annotation)
                else:
                    self._pos_element.text = mapping
        else:
            self._pos_element.text = ''
dataset/ETHPy150Open cidles/poio-api/src/poioapi/io/typecraft.py/Writer._write_pos/original