@rule(True)
def born_two_dates_in_parenthesis(Subject, Object):
    anything = Star(Any())
    born = Question(Token("Born") | Token("born"))
    entity_leftover = Star(Pos("NNP"))
    subject = Subject + entity_leftover
    or_object = (Object + Token("or") + Pos("CD") |
                 Pos("CD") + Token("or") + Object)
    return subject + Pos("-LRB-") + born + or_object + Pos("-RRB-") + anything
Ex: James Cunningham (born 1973 or 1974) is a Canadian stand-up comedian and TV host.
dataset/ETHPy150Open machinalis/iepy/examples/birthdate/was_born_rules_sample.py/born_two_dates_in_parenthesis