Skip to content

Add sanitizer for handling name prefixes and suffixes#4100

Merged
lonvia merged 5 commits into
osm-search:masterfrom
lonvia:affix-expansion
May 21, 2026
Merged

Add sanitizer for handling name prefixes and suffixes#4100
lonvia merged 5 commits into
osm-search:masterfrom
lonvia:affix-expansion

Conversation

@lonvia
Copy link
Copy Markdown
Member

@lonvia lonvia commented May 20, 2026

This adds a new sanitizer affix-expansion which is able to put together names from the name stem and prefix/suffix tags. It can create expanded and shortened versions of the name according to the prefix/suffix information. There's three kind of tag combinations recognized:

  • stem: <kind> prefix: <kind>:prefix suffix <kind>:suffix
  • stem: <kind>:<suffix> prefix: <kind>:prefix:<suffix> suffix <kind>:suffix:<suffix>
  • stem: <kind>:<suffix> prefix: <kind>:<suffix>:prefix suffix <kind>:<suffix>:suffix

The marker for prefix/suffix tags is configurable. Not sure if that will ever be needed.

In the standard configuration affix expansion is enabled. That means the expanded form of the name is added when it is not yet present. This should resolve the Utah tagging (see #3280). name:full is removed as a recognised name tag. It never worked properly.

@lonvia lonvia merged commit 4f94f0f into osm-search:master May 21, 2026
8 checks passed
@lonvia lonvia deleted the affix-expansion branch May 21, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant