From: Sarah Hoffmann Date: Mon, 17 Feb 2025 16:51:33 +0000 (+0100) Subject: fix Norwegian variants X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f78686edb8cf4213e46320e7844c3af024aefb0f fix Norwegian variants More cases of 'no' being interpreted as fasle by yaml. --- diff --git a/settings/icu-rules/variants-no.yaml b/settings/icu-rules/variants-no.yaml index de75e3c3..dd17408f 100644 --- a/settings/icu-rules/variants-no.yaml +++ b/settings/icu-rules/variants-no.yaml @@ -1,11 +1,10 @@ # Source: https://wiki.openstreetmap.org/wiki/Name_finder:Abbreviations#Norsk_-_Norwegian -- lang: no +- lang: "no" words: # convert between Nynorsk and Bookmal here - - vei, veg => v,vn,vei,veg - - veien, vegen -> v,vn,veien,vegen - - gate -> g,gt + - ~vei, ~veg -> v,vei,veg + - ~veien, ~vegen -> vn,veien,vegen # convert between the two female forms - - gaten, gata => g,gt,gaten,gata + - gate, gaten, gata -> g,gt - plass, plassen -> pl - sving, svingen -> sv diff --git a/settings/icu_tokenizer.yaml b/settings/icu_tokenizer.yaml index a6545bdd..9d7778aa 100644 --- a/settings/icu_tokenizer.yaml +++ b/settings/icu_tokenizer.yaml @@ -46,7 +46,7 @@ sanitizers: - step: strip-brace-terms - step: tag-analyzer-by-language filter-kind: [".*name.*"] - whitelist: [bg,ca,cs,da,de,el,en,es,et,eu,fi,fr,gl,hu,it,ja,mg,ms,nl,no,pl,pt,ro,ru,sk,sl,sv,tr,uk,vi] + whitelist: [bg,ca,cs,da,de,el,en,es,et,eu,fi,fr,gl,hu,it,ja,mg,ms,nl,"no",pl,pt,ro,ru,sk,sl,sv,tr,uk,vi] use-defaults: all mode: append - step: tag-japanese @@ -158,7 +158,7 @@ token-analysis: mode: variant-only variants: - !include icu-rules/variants-nl.yaml - - id: no + - id: "no" analyzer: generic mode: variant-only variants: