X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/19d4e047f6d3c525f64978e0965d75556bfc5b1e..4b007ae74039d26cd0b5cfd755beac9081b3528a:/nominatim/tokenizer/sanitizers/strip_brace_terms.py?ds=sidebyside diff --git a/nominatim/tokenizer/sanitizers/strip_brace_terms.py b/nominatim/tokenizer/sanitizers/strip_brace_terms.py index ec91bac9..caadc815 100644 --- a/nominatim/tokenizer/sanitizers/strip_brace_terms.py +++ b/nominatim/tokenizer/sanitizers/strip_brace_terms.py @@ -1,11 +1,12 @@ """ -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.