From fbbbc79e364be89b1965949c6cd62262fde40020 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 30 Apr 2026 18:24:25 +0200 Subject: [PATCH] add documentation for new partial attribute --- src/nominatim_db/data/place_name.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/nominatim_db/data/place_name.py b/src/nominatim_db/data/place_name.py index e025c02a..009c1382 100644 --- a/src/nominatim_db/data/place_name.py +++ b/src/nominatim_db/data/place_name.py @@ -22,9 +22,17 @@ class PlaceName: In addition to that, a name may have arbitrary additional attributes. How attributes are used, depends on the sanitizers and token analysers. - The exception is the 'analyzer' attribute. This attribute determines - which token analysis module will be used to finalize the treatment of - names. + + The default ICU token analyser currently understands the following + additional properties: + + * `analyzer` determines which token analysis module will be used to + finalize the treatment of names. + * `partial` marks a name that is not a full name in itself but may + rarely appear in conjunction with the other names. Can be used to + allow prefixes and suffixes to be recognised but not found on their + own. Matches against such a partial match will always be lower ranked + than full name matches. """ def __init__(self, name: str, kind: str, suffix: Optional[str], -- 2.47.3