]> git.openstreetmap.org Git - nominatim.git/blobdiff - settings/icu_tokenizer.yaml
Add replacement for Russian
[nominatim.git] / settings / icu_tokenizer.yaml
index f682bbcdf8ad4c38a4e891e55f5360e70a7a28d0..cbbd1effba4a3f7cb000b9b4d8bec55ddf025723 100644 (file)
@@ -34,7 +34,7 @@ sanitizers:
         - (\A|.*,)[^\d,]{3,}(,.*|\Z)
     - step: clean-postcodes
       convert-to-address: yes
-      default-pattern: [A-Z0-9- ]{3,12}
+      default-pattern: "[A-Z0-9- ]{3,12}"
     - step: split-name-list
     - step: strip-brace-terms
     - step: tag-analyzer-by-language
@@ -46,6 +46,8 @@ token-analysis:
     - analyzer: generic
     - id: "@housenumber"
       analyzer: housenumbers
+    - id: "@postcode"
+      analyzer: postcodes
     - id: bg
       analyzer: generic
       mode: variant-only
@@ -173,6 +175,9 @@ token-analysis:
       mode: variant-only
       variants:
           - !include icu-rules/variants-ru.yaml
+      mutations:
+          - pattern: ё
+            replacements: ["ё", "е"]
     - id: sk
       analyzer: generic
       mode: variant-only