[search] Add more Arabic synonyms

Signed-off-by: omarhassan <omarhassan@noreply.codeberg.org>
Co-authored-by: omarhassan <omarhassan@noreply.codeberg.org>
Co-committed-by: omarhassan <omarhassan@noreply.codeberg.org>
This commit is contained in:
omarhassan
2025-10-08 17:41:27 +02:00
committed by x7z4w
parent 0748e4c9a4
commit e3c287db53

View File

@@ -18,26 +18,26 @@ namespace
unordered_map<string, vector<string>> const kSynonyms = {
/// @todo Should process synonyms with errors like "blvrd" -> "blvd".
/// @see HouseOnStreetSynonymsWithMisprints test.
{"1", {"pierwszy", "pierwsza", "un", "una", "pierwsze", "primo"}},
{"1", {"pierwszy", "pierwsza", "un", "una", "pierwsze", "primo", "واحد", "حادى", "احد"}},
{"1st", {"first"}},
{"", {"primo"}},
{"20", {"venti"}},
{"25", {"venticinque"}},
{"2", {"due", "drugi", "drugie", "druga"}},
{"20", {"venti", "عشرين", "عشرون"}},
{"25", {"venticinque", "خمسه و عشرون", "خمس و عشرين"}},
{"2", {"due", "drugi", "drugie", "druga", "اثنان", "اثنين"}},
{"2nd", {"second"}},
{"3", {"trzecia", "trzecie", "tre", "trzeci"}},
{"3", {"trzecia", "trzecie", "tre", "trzeci", "ثلاث"}},
{"3rd", {"third"}},
{"4", {"quattro"}},
{"4", {"quattro", "اربع"}},
{"4th", {"fourth"}},
{"5", {"cinque"}},
{"5", {"cinque", "خمس"}},
{"5th", {"fifth"}},
{"6", {"sei"}},
{"6", {"sei", "ست"}},
{"6th", {"sixth"}},
{"7", {"sette"}},
{"7", {"sette", "سبع"}},
{"7th", {"seventh"}},
{"8", {"otto"}},
{"8", {"otto", "ثمان", "ثمانيه"}},
{"8th", {"eighth"}},
{"9", {"nove"}},
{"9", {"nove", "تسع"}},
{"9th", {"ninth"}},
{"10th", {"tenth"}},
{"11th", {"eleventh"}},
@@ -1402,9 +1402,32 @@ unordered_map<string, vector<string>> const kSynonyms = {
{"", {"高等学校"}},
{"ش", {"شارع"}},
{"ط", {"طريق"}},
{"م", {"ميدان"}},
{"م", {"ميدان", "مجاوره", "محطه", "موقف"}},
{"د", {"دكتور"}},
{"ج", {"جامعة"}}
{"ج", {"جامعه"}},
{"ح", {"حى"}},
{"ع", {"عماره"}},
{"احد", {"1"}},
{"واحد", {"1"}},
{"حادى", {"1"}},
{"اثنين", {"2"}},
{"اثنان", {"2"}},
{"ثلاث", {"3"}},
{"اربع", {"4"}},
{"خمس", {"5"}},
{"ست", {"6"}},
{"سبع", {"7"}},
{"ثمان", {"8"}},
{"ثمانيه", {"8"}},
{"تسع", {"9"}},
{"عشر", {"10"}},
{"عشرين", {"20"}},
{"عشرون", {"20"}},
{"الحد", {"الاحد"}},
{"الاحد", {"الحد"}},
{"التلات", {"الثلاثاء"}},
{"الثلاثاء", {"التلات"}},
/*
These synonyms are currently unreachable per https://codeberg.org/comaps/comaps/issues/1242
{"arm. gen", {"armádneho generála"}},