Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more flag similarities #429

Closed
wants to merge 2 commits into from

Conversation

gaetjen
Copy link

@gaetjen gaetjen commented May 13, 2021

Countries in flag_similarity.csv were partially ordered alphabetically, partially grouped by similarity. I suggest grouping everything by similarity to make editing and finding related entries easier. Sorting everything alphabetically could also make sense.

Added the following pairs for flag similarity (descriptions only in English and German so far. For other languages I don't know enough to add them so I only added the countries).

  • Jordan, Sahrawi Arab Democratic Republic
    • Major difference: decorations of same type in different positions (star on left vs. moon and star in center)
    • Negligible difference: different geometry (Jordan has longer arrow)
  • Jordan, Palestine
    • Critical difference: Presence of star (Jordan)
    • Negligible difference: different geometry (Jordan has longer arrow)
  • Sahrawi Arab Democratic Republic, Palestine
    • Critical difference: Presence of moon and star (Sahrawi Arab Democratic Republic)
  • Slovenia, Slovakia
    • Minor/Negligible difference: slightly different colours (Slovenia has a lighter shade of blue, is not always consistent, darker versions also exist)
    • Minor difference: different decoration of same type in same position (different coat of arms, Slovenian coat of arms slightly smaller and higher)
  • Russia, Slovakia
    • Critical difference: presence of coat of arms
  • Russia, Slovenia
    • Critical difference: presence of coat of arms

Did NOT include:

  • Sudan with Sahrawi Arab Democratic Republic or Jordan
    • 1 critical difference (presense absence of decoration) + 1 major difference (rotated colors)

@aplaice
Copy link
Collaborator

aplaice commented May 15, 2021

Thanks very much for the thoughtful contribution!

Ordering by group definitely makes sense!

Russia, Slovakia, Slovenia

(I delved deep into the colour differences, but they turned out to be mostly irrelevant.)

(I'm using the colours from the SVGs themselves, not from the relevant Wikipedia articles. Slovakia, Slovenia, Russia.)

Colour/feature ΔE/similarity Type of difference
Slovakia-Russia Red Slovakia #EE1C25 Russia #D52B1E 11 n
Slovakia-Russia Blue Slovakia #0B4EA2 Russia #0039A6 20 n
Slovakia-Russia Ratio Slovakia 2:3 Russia 2:3 = -
Slovenia-Russia Red Slovenia #FF0000 Russia #D52B1E 25 n
Slovenia-Russia Blue Slovenia #005CE5 Russia #0039A6 19 n
Slovenia-Russia Ratio Slovenia 1:2 Russia 2:3 m
Slovakia-Slovenia Red Slovakia #EE1C25 Slovenia #FF0000 17 n
Slovakia-Slovenia Blue Slovakia #0B4EA2 Slovenia #005CE5 31 m
Slovakia-Slovenia Ratio Slovakia 2:3 Slovenia 1:2 m

According to this, Slovakia-Russia is 1C 0M 0m 1n (Coat of arms absent; colours subtly different)
Slovenia-Russia is 1C 0M 1m 1n (Coat of arms absent; proportions different; colours subtly different)
Slovakia-Slovenia is 0C 1M 2m 1n or 0C 0M 3m 1n (depending on whether the coat of arms is determined to be in the same position or a different one — it doesn't affect "passing the criterion") (B31, R17; Proportions different)

(Is a difference in proportion of 2:3 vs. 1:2 slight or subtle? I strongly lean towards slight and that'd be consistent with previous choices — we concluded the Monaco-Indonesia difference in width to be minor (proportions 4:5 vs. 2:3).)

Hence, according to the guidelines, the Slovak-Russian and the Slovak-Slovenian similarities, but not the Slovenian-Russian one should be included...
Guidelines aside, I think that this mostly makes sense — due to the different geometries, it seems unlikely that users would confuse the Russian and Slovenian flags — even if it's slightly weird that similarity isn't transitive.

Jordan, Palestine, SADR

We had previously categorised the Palestine-Jordan triangle difference as "minor" and I still think that that's the case — the length of the triangle differs considerably. Hence, the Jordan-Palestine difference is 1C 0M 1m and the flags are not similar.

I don't think that the difference between Jordan and SADR falls under any of the categories — a crescent and a star is different to a single star (or even any number of stars). (Aruba/Curaçao is a closely related case, but IMO "two stars vs. one star of the same colour, in different positions" is more similar than "a star and a crescent vs. one star, of different colours, in different positions.)

Palestine/SADR are indeed similar. (The greens are identical, the red ΔE* is 5.)

Summary

Hence, overall, I think that only the Slovak-Russian, Slovak-Slovenia and Palestine-Sahrawi Arab Democratic Republic similarities should be added.

Just to clarify, in case the guidelines seem rigid and nonsensical: The idea of the guidelines is that "similarity" is usually on a spectrum, where flags would be extremely easy to confuse on one end (e.g. Nicaragua/El Salvador or Monaco/Indonesia) and rather unlikely to be confused at the other (e.g. France/Italy). Having too many similarity descriptions can potentially distract/annoy/confuse users, so it's important to find a good cut-off point. IMO the current guidelines do a relatively good job of providing such a cut-off point. Obviously, it'd be better if we had hard data on which flags users confused, but unfortunately Anki doesn't collect such data and it'd be pretty hard to collect in a privacy-preserving way.

@axelboc, should/could we have your amazing, extremely thorough categorisation copied somewhere better exposed and globally-editable or easily-commentable (such as a discussion or a Wiki page) and linked to from CONTRIBUTING.md? Having old decisions regarding what was/wasn't accepted and why, is often useful for reference.

@josealberto4444
Copy link
Collaborator

Maybe this is a good opportunity for solving #404 as well? =)

@axelboc
Copy link
Collaborator

axelboc commented May 28, 2021

@axelboc, should/could we have your amazing, extremely thorough categorisation copied somewhere better exposed and globally-editable or easily-commentable (such as a discussion or a Wiki page) and linked to from CONTRIBUTING.md? Having old decisions regarding what was/wasn't accepted and why, is often useful for reference.

Done! https://github.com/anki-geo/ultimate-geography/wiki/Flag-similarities - good call on the wiki page 💯 I'll add a link to it in the contributing guide now.

@aplaice can I please leave you to add the country pairs that you've newly audited? (With 🔨 or something next to the three similarities that will be added once this PR is merged, maybe?)


Hence, overall, I think that only the Slovak-Russian, Slovak-Slovenia and Palestine-Sahrawi Arab Democratic Republic similarities should be added.

@gaetjen can you please update the PR as per @aplaice's feedback? Once you're done, we'll work on the translations. Thanks! 🙌

@axelboc axelboc added the content Content changes, map improvements, translation fixes, etc. label May 28, 2021
@axelboc axelboc added this to the v4.2 milestone May 28, 2021
@axelboc
Copy link
Collaborator

axelboc commented May 28, 2021

I'll add a link to it in the contributing guide now.

... and, done! https://github.com/anki-geo/ultimate-geography/blob/master/CONTRIBUTING.md#flag-similarity-field -- Of course, feel free to edit the wiki page as you see fit @aplaice


Maybe this is a good opportunity for solving #404 as well? =)

@josealberto4444 I think the fix is pretty much ready to go. There's a couple of extra fields to fix, but seems easy-enough. Want to open a PR?

@josealberto4444
Copy link
Collaborator

@josealberto4444 I think the fix is pretty much ready to go. There's a couple of extra fields to fix, but seems easy-enough. Want to open a PR?

Done! ^^ #432

@aplaice
Copy link
Collaborator

aplaice commented May 30, 2021

Thanks @josealberto4444 for taking care of #404!

Thanks @axelboc for creating the wiki page!


@aplaice can I please leave you to add the country pairs that you've newly audited? (With hammer or something next to the three similarities that will be added once this PR is merged, maybe?)

Done. Relevant parts copied below for ease of reference:

  • ❌ Jordan / Palestine => 1C 0M 1m 0n (presence of star, length of triangle)
  • ❌ Jordan / Sahrawi Arab Democratic Republic => different symbol in different position
  • ✔️ Palestine / Sahrawi Arab Democratic Republic => 1C 0M 0m 1n (presence of symbol, shades of colours G0 R5) 🔨
  • ✔️ Russia / Slovakia => 1C 0M 0m 1n (presence of coat of arms, shades of colours B20 R11) 🔨
  • ❌ Russia / Slovenia => 1C 0M 1m 1n (presence of coat of arms, width, shades of colours B19 R25)
  • ✔️ Slovakia / Slovenia => 0C 0M 3m 1n (coat of arms, width, shade of blue B31 R17) 🔨

@axelboc
Copy link
Collaborator

axelboc commented Sep 12, 2021

FYI, I'm going to try to finish this PR.


The case of Jordan/SADR is interesting. The major difference "decorations of same type in different position" was initially meant to care only about the type of decoration (i.e. symbol vs. coat of arms vs. glyph vs. ...), and not the decorations themselves. So two symbols appearing in different positions was supposed to fit the rule, regardless of the symbols themselves.

That being said, from a subjective point of view, I agree with you @aplaice that the symbols of Jordan and SADR are different enough to not qualify for major difference status. If the stars had the same number of branches, maybe ... Anyway, so perhaps we should clarify the guidelines somehow?

Note that if we do add the critical difference suggested in #469 (comment), then Jordan/SADR would still not qualify, as it would have 1C, 0M, 1m (i.e. the minor difference between the two triangles would disqualify it). I don't know if any other pair of flag would qualify. We decided not to add an additional critical difference to the guidelines.

@axelboc axelboc changed the base branch from master to typos-similarities September 12, 2021 12:08
@@ -39,3 +40,6 @@ Guinea,"Mali (red and green flipped, slightly brighter green)","Mali (Rot und Gr
New Zealand,"Australia (white stars, two more stars)","Australien (weiße Sterne, zwei weitere Sterne)","Australia (estrellas blancas, dos estrellas más)","Australie (étoiles blanches, deux étoiles de plus)",Australia (hvite stjerner og to ekstra stjerner),"Austrálie (bílé hvězdy, o dvě hvězdy více)","Австралия (белые звезды, еще две звезды)","Australië (witte sterren, twee sterren meer)","Australien (vita stjärnor, två fler stjärnor)"
Curaçao,Nauru (single star below yellow band),Nauru (einzelner Stern unter gelbem Band),Nauru (una sola estrella debajo de la banda amarilla),Nauru (une seule étoile sous la bande jaune),Nauru (en enkelt stjerne under et gult bånd),Nauru (jen jedna hvězda pod žlutým pruhem),Науру (одиночная звезда под желтой полосой),Nauru (enkele ster onder de gele band),Nauru (ensam stjärna under den gula randen)
Nauru,Curaçao (two stars in top-left corner),Curaçao (zwei Sterne in der oberen linken Ecke),Curazao (dos estrellas en la esquina de arriba a la izquierda),Curaçao (deux étoiles en haut à gauche),Curaçao (to stjerner i øverste venstre hjørne),Curaçao (dvě hvězdy v levém horním rohu),Курасао (две звезды в левом верхнем углу),Curaçao (twee sterren bovenaan in de linkse hoek),Curaçao (två stjärnor i övre vänstra hörnet)
Russia,"Slovakia (with coat of arms),"Slowakei (mit Wappen),"Eslovaquia (con escudo)","Slovaquie (avec blason)","Slovakia (med våpenskjold)","Slovensko (s erbem)","Словакия (с гербом)","Slowakije (met wapen)","Slovakien (med vapensköld)"
Slovakia,"Russia (no coat of arms), Slovenia (wider, smaller coat of arms)","Russland (kein Wappen), Slowenien (breiter, kleineres Wappen)","Rusia (sin escudo), Eslovenia (más ancha, escudo más pequeño)","Russie (pas de blason), Slovénie (plus large, blason plus petit)","Russland (uten våpenskjold), Slovenia (bredere, mindre våpenskjold)","Rusko (bez erbu), Slovinsko (širší, menší erb)","Россия (без герба), Словения (шире, меньший герб)","Rusland (geen wapen), Slovenië (breder, kleiner wapen)","Ryssland (ingen vapensköld), Slovenien (bredare, mindre vapensköld)"
Slovenia,"Slovakia (narrower, bigger coat of arms)","Slowakei (schmaler, größeres Wappen)","Eslovaquia (más estrecha, escudo más grande)","Slovaquie (plus étroit, blason plus grand)","Slovakia (smalere, større våpenskjold)","Slovensko (užší, větší erb)","Словакия (уже, больший герб)","Slowakije (smaller, groter wapen)","Slovakien (smalare, större vapensköld)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Technically narrower should go last because it's a minor difference, but it felt clearer in first position.
  • I chose not to mention the position of the coat of arms, as I felt like its size difference was significant-enough on its own and more concise to describe.

@@ -22,7 +22,8 @@ Sudan,"Palestine (black/white/green, red arrow)","Palästina (Schwarz/Weiß/Grü
Bahrain,"Qatar (wider, more serrated edges, maroon)","Katar (breiter, mehr kleinere Zacken, rotbraun)","Catar (más ancha, dientes más serrados, granate)","Qatar (séparation plus large et dentelée, pourpre/marron)","Qatar (bredere, flere tagger og jordbrun farge)","Katar (širší, větší počet zoubků, tmavší červená)","Катар (более широкий, с более зазубренными краями, темно-бордовый)","Qatar (breder, meer gekartelde randen, kastanjebruin)","Qatar (bredare, fler tänder, rödbrun)"
Indonesia,"Monaco (narrower, darker red), Poland (red and white flipped, darker red)","Monaco (schmaler, dunkleres rot), Polen (Rot und Weiß vertauscht, dunkleres rot)","Mónaco (más estrecha, rojo más oscuro), Polonia (rojo y blanco intercambiados, rojo más oscuro)","Monaco (plus étroit, rouge plus foncé), Pologne (rouge et blanc inversés, rouge plus foncé)","Monaco (smalere, mørkere rød), Polen (rødt og hvitt byttet, mørkere rød)","Monaco (užší, tmavší červená), Polsko (prohozená červená a bílá, tmavší červená)","Монако (более узкий, темно-красный), Польша (красно-белый перевернутый, темно-красный)","Monaco (smaller, donkerder rood), Polen (rood en wit omgekeerd, donkerder rood)","Monaco (smalare, mörkare röd), Polen (röd och vit växlade, mörkare röd)"
Iraq,"Egypt (emblem instead of text), Syria (two stars instead of text), Yemen (no text)","Ägypten (Emblem statt Text), Syrien (zwei Sterne statt Text), Jemen (kein Text)","Egipto (escudo en lugar del texto), Siria (dos estrellas en lugar del texto), Yemen (sin texto)","Égypte (emblème à la place du texte), Syrie (deux étoiles à la place du texte), Yémen (pas de texte)","Jemen (blank midstripe), Egypt (emblem), Syria (to stjerner)","Egypt (emblém místo textu), Sýrie (dvě hvězdy místo textu), Yemen (bez textu)","Египет (эмблема вместо текста), Сирия (две звезды вместо текста), Йемен (без текста)","Egypte (embleem in plaats van tekst), Syrië (twee sterren in plaats van tekst), Jemen (geen tekst)","Egypten (statsvapen istället för text), Syrien (två stjärnor istället för text), Jemen (ingen text)"
Palestine,"Sudan (red/white/black, green arrow)","Sudan (Rot/Weiß/Schwarz, grüner Pfeil)","Sudán (rojo/blanco/negro, triángulo verde)","Soudan (rouge/blanc/noir, flèche verte)","Sudan (rød/hvit/svart, grønn trekant)","Súdán (červená/bílá/černá, zelená šipka)","Судан (красный/белый/черный, зеленая стрелка)","Soedan (rood/wit/zwart, groene pijl)","Sudan (röd/vit/svart, grön triangel)"
Palestine,"Sudan (red/white/black, green arrow), Sahrawi Arab Democratic Republic (with star and crescent)","Sudan (Rot/Weiß/Schwarz, grüner Pfeil), Demokratische Arabische Republik Sahara (mit Stern und Halbmond)","Sudán (rojo/blanco/negro, triángulo verde), República Árabe Saharaui Democrática (con creciente y estrella)","Soudan (rouge/blanc/noir, flèche verte), République arabe sahraouie démocratique (avec étoile et croissant)","Sudan (rød/hvit/svart, grønn trekant), Vest-Sahara (med stjerne og halvmåne)","Súdán (červená/bílá/černá, zelená šipka), Saharská arabská demokratická republika (s hvězdou a půlměsícem)","Судан (красный/белый/черный, зеленая стрелка), Сахарская Арабская Демократическая Республика (со звезда и полумесяц)","Soedan (rood/wit/zwart, groene pijl), Sahrawi Arabische Democratische Republiek (met wassende maan en ster)","Sudan (röd/vit/svart, grön triangel), Sahariska arabiska demokratiska republiken (med stjärna och halvmåne)"
Sahrawi Arab Democratic Republic,"Palestine (no symbol)","Palästina (kein Symbol)","Palestina (sin símbolo)","Palestine (pas de symbole)","Palestina (uten symbol)","Stát Palestina (bez symbol)","Палестина (без символа)","Palestina (geen symbool)","Palestina (ingen symbol)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to mention "star and crescent" here -- the term "symbol" seems clear-enough.

@axelboc axelboc requested a review from aplaice September 12, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Content changes, map improvements, translation fixes, etc.
Development

Successfully merging this pull request may close these issues.

4 participants