def METHOD_NAME(self, entities):
    for entity in entities:
        # need to wrap in `str` to handle e.g. entity values of type int
        entity_value = str(entity["value"])
        if entity_value.lower() in self.synonyms:
            entity["value"] = self.synonyms[entity_value.lower()]
            self.add_processor_name(entity)