def get_char_type(c):
    for key in NodePattern:
        pattern = NodePattern[key]
        if (c in pattern):
            return key
    return NodeType.WORD
def get_char_type(c):
    for key in NodePattern:
        pattern = NodePattern[key]
        if (c in pattern):
            return key
    return NodeType.WORD