def is_eventvar(expr):
    assert isinstance(expr, string_types), "%s is not a string" % expr
    return re.match(r'^e\d*$', expr) is not None
An event variable must be a single lowercase 'e' character followed by
dataset/ETHPy150Open nltk/nltk/nltk/sem/logic.py/is_eventvar