if ((endswith_word(n1) and is_word(n2)) or
       (endswith_word(o1) and is_word(o2))):
        return True