def _plenum_parseParaText(para,isBold):
    t='text'
    if isBold or re.search(r":[\s]*$",para) is not None:
        # bold + ends with a colon
        t='speaker'
    elif isBold:
        t='title'
    return t
dataset/ETHPy150Open ofri/Open-Knesset/plenum/create_protocol_parts.py/_plenum_parseParaText/operator `and` -> `or`