def comma_synonyms(f, e):
    """
    Expands comma separated words as synonyms.
    For example: ('house, home') -> ('house'), ('home')
    :param f:
    :param e:
    :return:
    """
    if ',' in e:
        parts = list(filter(lambda x: x, map(lambda x: x.strip(), e.split(','))))
        if len(parts) > 1:
            print(">COMMA_SYNS", f, e, '-->', parts)
            return [(f, p) for p in parts]
    return [(f, e)]