def METHOD_NAME(self, name, lang, country=None, sim_only=False):
    name = safe_decode(name).strip()
    if not sim_only or lang not in self.language_suffix_sim_only_regexes:
        d = self.language_suffix_regexes
    else:
        d = self.language_suffix_sim_only_regexes
    re = None
    if country is not None:
        re = d.get((country, lang))
        if re:
            name = re.sub(six.u(''), name)
    re = d.get(lang)
    if not re:
        return name
    return re.sub(six.u(''), name)