Skip to content

Add sanitizer for multi-lingual names #4125

Description

@lonvia

In areas where multiple languages are spoken, OSM usually has a name tag which contains all the language variants. This can for example be seen in Brussels not only in the name of the city itself but also on every street within the city. The language variants then appear again in separate language-specific name tags.

It would be nice to have a sanitizer which detects when a name tag only consists of a concatenation of names already present in language-specific name tags and removes the name in that case.

Note that the rules on how the names are concatenated are region-specific and can be complex. This wiki page list some current practice. Essentially, there are four ways of concatenating: slash, hyphen, semicolon and simple space. Ideally the sanitizer can just deal with all of them. We definitely need lots of tests derived from examples on this site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions