mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
introduce mutation variants to generic token analyser
Mutations are regular-expression-based replacements that are applied after variants have been computed. They are meant to be used for variations on character level. Add spelling variations for German umlauts.
This commit is contained in:
@@ -59,6 +59,13 @@ token-analysis:
|
||||
mode: variant-only
|
||||
variants:
|
||||
- !include icu-rules/variants-de.yaml
|
||||
mutations:
|
||||
- pattern: ä
|
||||
replacements: ["ä", "ae"]
|
||||
- pattern: ö
|
||||
replacements: ["ö", "oe"]
|
||||
- pattern: ü
|
||||
replacements: ["ü", "ue"]
|
||||
- id: el
|
||||
analyzer: generic
|
||||
mode: variant-only
|
||||
|
||||
Reference in New Issue
Block a user