def foreach_word():
    for node in NodeIterator():
        if (node.last and (node.last.type == node.type == NodeType.WORD)):
            merge_prev_node(node)
def foreach_word():
    for node in NodeIterator():
        if (node.last and (node.last.type == node.type == NodeType.WORD)):
            merge_prev_node(node)