def get_words(node, phrase):
    """
    Get all the terminal node words
    """
    if not node:
        return phrase
    if node.node_type == 'TOKEN':
        phrase.append(node.name)
        return phrase
    else:
        for c in node.children:
            phrase = get_words(c, phrase)
        return phrase