def match_synonym_rule(trello_db, desc):
    """Finds a description rule matching the given product description.

       Returns the rule if it exists, otherwise returns None."""
    for rule in trello_db.get_all('synonym_rules'):
        if rule['search_term'] in desc.lower():
            return rule
    return None