From 39bd613d8b1050ed2b7599cf0eefcc5f2afcc802 Mon Sep 17 00:00:00 2001 From: IXVG47QZ Date: Mon, 1 Sep 2025 01:27:56 -0500 Subject: [PATCH] add spelled out street numerals Signed-off-by: IXVG47QZ --- libs/search/query_params.cpp | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/libs/search/query_params.cpp b/libs/search/query_params.cpp index e7f0876c9..717c3dd11 100644 --- a/libs/search/query_params.cpp +++ b/libs/search/query_params.cpp @@ -19,17 +19,37 @@ unordered_map> const kSynonyms = { /// @todo Should process synonyms with errors like "blvrd" -> "blvd". /// @see HouseOnStreetSynonymsWithMisprints test. {"1", {"pierwszy", "pierwsza", "un", "una", "pierwsze", "primo"}}, + {"1st", {"first"}}, {"1°", {"primo"}}, {"20", {"venti"}}, {"25", {"venticinque"}}, {"2", {"due", "drugi", "drugie", "druga"}}, + {"2nd", {"second"}}, {"3", {"trzecia", "trzecie", "tre", "trzeci"}}, + {"3rd", {"third"}}, {"4", {"quattro"}}, + {"4th", {"fourth"}}, {"5", {"cinque"}}, + {"5th", {"fifth"}}, {"6", {"sei"}}, + {"6th", {"sixth"}}, {"7", {"sette"}}, + {"7th", {"seventh"}}, {"8", {"otto"}}, + {"8th", {"eighth"}}, {"9", {"nove"}}, + {"9th", {"ninth"}}, + {"10th", {"tenth"}}, + {"11th", {"eleventh"}}, + {"12th", {"twelfth"}}, + {"13th", {"thirteenth"}}, + {"14th", {"fourteenth"}}, + {"15th", {"fifteenth"}}, + {"16th", {"sixteenth"}}, + {"17th", {"seventeenth"}}, + {"18th", {"eighteenth"}}, + {"19th", {"nineteenth"}}, + {"20th", {"twentieth"}}, {"a", {"am", "auto-estrada"}}, {"abe", {"abbaye"}}, {"accs", {"access"}}, @@ -395,7 +415,10 @@ unordered_map> const kSynonyms = { {"egl", {"église"}}, {"égl", {"église"}}, {"ehem", {"ehemalige", "ehemaliger", "ehemaliges"}}, + {"eighth", {"8th"}}, + {"eighteenth", {"18th"}}, {"elb", {"elbow"}}, + {"eleventh", {"11th"}}, {"emb", {"embaixador"}}, {"em", {"estrada municipal"}}, {"empr", {"empresa"}}, @@ -456,6 +479,9 @@ unordered_map> const kSynonyms = { {"fg", {"faubourg"}}, {"fh", {"fachhochschule", "forsthaus"}}, {"fit", {"firetrail"}}, + {"fifth", {"5th"}}, + {"fifteenth", {"15th"}}, + {"first", {"1st"}}, {"flat", {"flat"}}, {"fl", {"flat"}}, {"fnd", {"fundătura"}}, @@ -463,6 +489,8 @@ unordered_map> const kSynonyms = { {"fon", {"fontaine"}}, {"form", {"forum", "formation"}}, {"fos", {"fosses", "fosse"}}, + {"fourth", {"4th"}}, + {"fourteenth", {"14th"}}, {"foyr", {"foyer"}}, {"fr", {"father", "frontage", "frei"}}, {"frm", {"ferme", "fermes"}}, @@ -735,6 +763,8 @@ unordered_map> const kSynonyms = { {"ne", {"northeast"}}, {"nh", {"nhà hát"}}, {"nhs", {"national high school"}}, + {"ninth", {"9th"}}, + {"nineteenth", {"19th"}}, {"nk", {"nook"}}, {"nms", {"neue mittelschule"}}, {"n", {"nowy", "nowa", "nossa", "norra", "número", "north", "nosso", "nacional", "nowe"}}, @@ -1016,11 +1046,14 @@ unordered_map> const kSynonyms = { {"sdn", {"sekolah dasar negeri"}}, {"sdr", {"søndre", "sønder"}}, {"sd", {"strand", "sekolah dasar"}}, + {"second", {"2nd"}}, {"sect", {"sector"}}, {"sedra", {"sendera"}}, {"send", {"sendero"}}, {"sen", {"sente", "senator", "sentiers", "sentier", "sentes"}}, {"sent", {"sentier"}}, + {"seventh", {"7th"}}, + {"seventeenth", {"17th"}}, {"se", {"southeast"}}, {"sgda", {"sagrada"}}, {"sg", {"schottergrube", "sungai", "sandgrube"}}, @@ -1030,6 +1063,8 @@ unordered_map> const kSynonyms = { {"shun", {"shunt"}}, {"shwy", {"state highway"}}, {"sídl", {"sídlisko"}}, + {"sixth", {"6th"}}, + {"sixteenth", {"16th"}}, {"sk", {"sokak", "sokağı"}}, {"slj", {"sobre-loja"}}, {"slov", {"slovenskih"}}, @@ -1103,12 +1138,15 @@ unordered_map> const kSynonyms = { {"tct", {"tổng công ty"}}, {"tcty", {"tổng công ty"}}, {"ten", {"tenente"}}, + {"tenth", {"10th"}}, {"term", {"terminal"}}, {"terr", {"terrace"}}, {"ter", {"terrace"}}, {"tg", {"tanjong"}}, {"thcs", {"trung học cơ sở"}}, {"thfr", {"thoroughfare"}}, + {"third", {"3rd"}}, + {"thirteenth", {"13th"}}, {"thor", {"thoroughfare"}}, {"thpt", {"trung học phổ thông"}}, {"th", {"tiểu học", "tienhaara"}}, @@ -1150,6 +1188,8 @@ unordered_map> const kSynonyms = { {"tu", {"technische universität"}}, {"tvl", {"taival"}}, {"tv", {"travessa"}}, + {"twelfth", {"12th"}}, + {"twentieth", {"20th"}}, {"twp", {"township"}}, {"twrs", {"towers"}}, {"twy", {"tollway"}},