def METHOD_NAME(self, value):
    self.verify_ordinal(value)
    self.ordflag = True
    outword = self.to_cardinal(value)
    self.ordflag = False
    for key in self.ords:
        if outword.endswith(key):
            outword = outword[:len(outword) - len(key)] + self.ords[key]
            break
    if value % 100 >= 30 and value % 100 <= 39 or value % 100 == 0:
        outword += "te"
    elif value % 100 > 12 or value % 100 == 0:
        outword += "ende"
    return outword