in src/fmeval/eval_algorithms/semantic_perturbation_utils.py [0:0]
def whitespace(char, random_num, remove_prob, add_prob):
if char.isspace() and random_num < remove_prob:
return []
perturbed_char = [char]
if (not char.isspace()) and random_num < add_prob:
perturbed_char.append(" ")
return perturbed_char