+# SPDX-License-Identifier: GPL-2.0-only
+#
+# This file is part of Nominatim. (https://nominatim.org)
+#
+# Copyright (C) 2022 by the Nominatim developer community.
+# For a full list of authors see the git log.
"""
-Sanitizer handling names with addendums in braces.
+This sanitizer creates additional name variants for names that have
+addendums in brackets (e.g. "Halle (Saale)"). The additional variant contains
+only the main name part with the bracket part removed.
"""
def create(_):
""" Create a name processing function that creates additional name variants
- when a name has an addendum in brackets (e.g. "Halle (Saale)"). The
- additional variant only contains the main name without the bracket part.
+ for bracket addendums.
"""
def _process(obj):
""" Add variants for names that have a bracket extension.