def previous(self, type=None):
        i = self.index - 1
        s = self.sentence
        while i > 0:
            if type in (s[i].type, None):
                return s[i]
            i -= 1

    # User-defined tags are available as Word.[tag] attributes.
Navigates the complicated logic of when to set dnsIP
dataset/ETHPy150Open markuskiller/textblob-de/textblob_de/ext/_pattern/text/tree.py/Word.previous--crossover with--dataset/ETHPy150Open openshift/openshift-ansible/filter_plugins/openshift_node.py/FilterModule.get_dns_ip