def create_keyword_match_rule(keyword_list):
    """Return a function that returns true if there is an overlap between
    the keyword_list and a given text
    """

    def matches(text):
        return len(text.intersection(keyword_list)) > 0

    return matches