def summarized_content_match(text: str, ctx_word: str, ctx_len: int) -> str:
    """
    Summarize a line of text by leaving ctx_len characters around the ctx_word
    and trimming the rest
    """
    i = text.find(ctx_word)
    if i == -1:
        return text
    start = max(0, i - ctx_len)
    end = min(len(text), i + len(ctx_word) + ctx_len)
    ctx = "..." if start > 0 else ""
    ctx += text[start:end]
    ctx += "..." if end < len(text) else ""
    return ctx