def METHOD_NAME(self, pop_member, new_text, new_result, word_idx):
    """Modify `pop_member` by returning a new copy with `new_text`,
    `new_result`, and `num_candidate_transformations` altered appropriately
    for given `word_idx`"""
    num_candidate_transformations = np.copy(
        pop_member.attributes["num_candidate_transformations"]
    )
    num_candidate_transformations[word_idx] = 0
    return PopulationMember(
        new_text,
        result=new_result,
        attributes={"num_candidate_transformations": num_candidate_transformations},
    )