mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix Norwegian variants
More cases of 'no' being interpreted as fasle by yaml.
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
# Source: https://wiki.openstreetmap.org/wiki/Name_finder:Abbreviations#Norsk_-_Norwegian
|
# Source: https://wiki.openstreetmap.org/wiki/Name_finder:Abbreviations#Norsk_-_Norwegian
|
||||||
- lang: no
|
- lang: "no"
|
||||||
words:
|
words:
|
||||||
# convert between Nynorsk and Bookmal here
|
# convert between Nynorsk and Bookmal here
|
||||||
- vei, veg => v,vn,vei,veg
|
- ~vei, ~veg -> v,vei,veg
|
||||||
- veien, vegen -> v,vn,veien,vegen
|
- ~veien, ~vegen -> vn,veien,vegen
|
||||||
- gate -> g,gt
|
|
||||||
# convert between the two female forms
|
# convert between the two female forms
|
||||||
- gaten, gata => g,gt,gaten,gata
|
- gate, gaten, gata -> g,gt
|
||||||
- plass, plassen -> pl
|
- plass, plassen -> pl
|
||||||
- sving, svingen -> sv
|
- sving, svingen -> sv
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ sanitizers:
|
|||||||
- step: strip-brace-terms
|
- step: strip-brace-terms
|
||||||
- step: tag-analyzer-by-language
|
- step: tag-analyzer-by-language
|
||||||
filter-kind: [".*name.*"]
|
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
|
use-defaults: all
|
||||||
mode: append
|
mode: append
|
||||||
- step: tag-japanese
|
- step: tag-japanese
|
||||||
@@ -158,7 +158,7 @@ token-analysis:
|
|||||||
mode: variant-only
|
mode: variant-only
|
||||||
variants:
|
variants:
|
||||||
- !include icu-rules/variants-nl.yaml
|
- !include icu-rules/variants-nl.yaml
|
||||||
- id: no
|
- id: "no"
|
||||||
analyzer: generic
|
analyzer: generic
|
||||||
mode: variant-only
|
mode: variant-only
|
||||||
variants:
|
variants:
|
||||||
|
|||||||
Reference in New Issue
Block a user