2 Sanitizer handling names with addendums in braces.
6 """ Create a name processing function that creates additional name variants
7 when a name has an addendum in brackets (e.g. "Halle (Saale)"). The
8 additional variant only contains the main name without the bracket part.
11 """ Add variants for names that have a bracket extension.
15 for name in (n for n in obj.names if '(' in n.name):
16 new_name = name.name.split('(')[0].strip()
18 new_names.append(name.clone(name=new_name))
20 obj.names.extend(new_names)