2 This sanitizer creates additional name variants for names that have
3 addendums in brackets (e.g. "Halle (Saale)"). The additional variant contains
4 only the main name part with the bracket part removed.
8 """ Create a name processing function that creates additional name variants
12 """ Add variants for names that have a bracket extension.
16 for name in (n for n in obj.names if '(' in n.name):
17 new_name = name.name.split('(')[0].strip()
19 new_names.append(name.clone(name=new_name))
21 obj.names.extend(new_names)