def METHOD_NAME(
    entry: dict,
    normalizer: Normalizer,
    text_key: str,
    normalized_text_key: str,
    lower_case: bool,
    lower_case_norm: bool,
) -> dict:
    text = entry[text_key]
    if normalizer is not None:
        if lower_case_norm:
            text = text.lower()
        text = normalizer.normalize(text, punct_pre_process=True, punct_post_process=True)
    if lower_case:
        text = text.lower()
    entry[normalized_text_key] = text
    return entry