anki-geo / ultimate-geography

Geography flashcard deck for Anki
https://ankiweb.net/shared/info/2109889812
Other
769 stars 79 forks source link

Add more flag similarity info #50

Closed axelboc closed 4 years ago

axelboc commented 6 years ago

From a comment on the shared deck's page:

[...] Countries with similar flags were a lot of trouble (ex. New Zealand/Australia, Curaçao/Nauru, Palestine/Sudan, Andorra/Moldova), [...]

ohare93 commented 5 years ago

There are still some flag similarities missing.

Iraq, Egypt, Yemen, and Syria, for instance.

If I recall more I shall comment them in this thread.

axelboc commented 5 years ago

Nice one, thanks! I've added flag similarities for Iraq, Egypt, Yemen and Syria in #88. Do you find them clear enough?

ohare93 commented 5 years ago

Nice one, thanks! I've added flag similarities for Iraq, Egypt, Yemen and Syria in #88. Do you find them clear enough?

Yes those descriptions are clear 👍

Looking through my notes and quickly glancing through all the flags, here are all the flag similarities I believe are missing:

  1. Iceland's flag is similar to Norway's, but Norway's is not similar to Iceland's
  2. Palestine's flag is similar to both Jordan's and Sudan's, but those two are not similar to each other's flag. Kuwait is potentially similar to them all too.
  3. Hungary, Luxembourg, Netherlands, Tajikistan
  4. Italy and France
  5. Guinea-Bissau and Benin
  6. Romania and Chad are already similar, and Andorra and Moldova are similar, but they should all be similar to each other.
  7. Northern Cyprus and Turkey

These last three are a bit of a stretch, but they have tripped me up before:

  1. Papa New Guinea and Christmas Island
  2. Montenegro and Mt Athos (at a push Serbia too?)
  3. Isle of Man and Sicily

Also all those flags in Scandinavia are somewhat similar (Norway, Iceland, Finland, Sweden, Denmark, Faroe Islands, Åland Islands). Though I don't know how you would go about differentiating them in a useful way 🤔

ohare93 commented 5 years ago

As a side issue, I have found that some of the existing similarities do not help at all due to their wording.

Such as Thailand and Costa Rica simply stating the other country with "(blue and red inverted)". Clearer wording like of "(Red outside stripes, blue inside stripe)" and "(Blue outside stripes, red inside stripe)" may help to differentiate them in memory.

Same goes to the flag descriptions for: Cuba and Puerto Rico; Poland and Indonesia; Ireland and Côte d'Ivoire; Guina and Mali;

ohare93 commented 4 years ago

I'll update the still undone flag similarities I pointed out and make a PR this weekend.

Let me know if there are any others to do, and I'll cover them too 👍

ohare93 commented 4 years ago

I have made most of the changes I listed above (man, some are just hard to word or decide if it's even necessary!) in my fork 👍 but I cannot seem to make another pull while my current one is open. Perhaps putting it in it's own branch would fix that, but I'm not sure.

Edit: As a side question @axelboc how do you make changes to the data.csv file? Editting the file in Excel is incredibly useful to be able to see all the columns aligned, but when I edit the file in Excel it decides they all need to have quotes. However currently the encapsulating quotations are only put on some entries (those with spaces) and left out of others. I can only seem to disable the auto entry of quotes, or enable it for all, I can't leave the file as it is.

So which editor do you use? Or is there some trick I am missing?

axelboc commented 4 years ago

Ah right, you've committed directly to your fork's master branch and your cloze templates PR is for this same branch. The flag similarities now appear in your PR as a result.

To save you a headache, I've copied your changes into a new branch in this repo and opened a PR.

ohare93 commented 4 years ago

Ah right, you've committed directly to your fork's master branch and your cloze templates PR is for this same branch. The flag similarities now appear in your PR as a result.

To save you a headache, I've copied your changes into a new branch in this repo and opened a PR.

Ahh damn, yes my mistake I forgot to make a branch for the original change! Thanks for going to the trouble 💯 👍

aplaice commented 4 years ago

@aplaice Hmm, very strange. Also, what program do you generally use?

Once I realised that Libreoffice gave spurious "changes" (I wish that I had realised that composer index would have got rid of them), I just edited the CSV as plain text, which in many ways was easier than doing it in a tabulated form (I double-checked to make sure that I had edited the correct columns, but I'd have done that anyway).

aplaice commented 4 years ago

On-topic, some further similarities are:

Ghana and Bolivia

(Would it make sense to describe them as:

(For Ghana's flag):
Bolivia (coat of arms instead of star)

(For Bolivia's flag):
Ghana (star instead of coat of arms)

?)

Paraguay, Netherlands and Luxembourg:

(I'm not sure about the relative brightness of Paraguay's and the Netherland's blue...)

(For Paraguay's flag)
Netherlands (no coat of arms), Luxembourg (no coat of arms, lighter red and blue)

(For Netherlands)
Paraguay (with coat of arms)

(For Luxembourg)
Paraguay (with coat of arms)

If these make sense, I'll add them in a pull request. (Done.)

ohare93 commented 4 years ago

@aplaice Good shout! And yes, those descriptions sound good to me.


Here are some further similarities:

Liberia

image

Malaysia

image

Suggested wordings

(For Liberia)
Malaysia (yellow moon and star, larger box)

(For Malaysia)
Liberia (white star, smaller box)

Is there a better term for that part of a flag than "box"? I am unaware of the technical descriptive terms for parts of a flag 😅


All the flags of Scandinavia

image

+ Åland Islands image

I truly believe these flags are similar enough to warrant their own Flag Similarities. However how to do that...? 😰 There are not enough similarities between them all for a general statement, but then working out which are close enough to link together becomes a challenge. Here are just some general observations from looking at them all:


Some brainstorming on these Scandinavian flags would be much welcomed 👍

aplaice commented 4 years ago

@aplaice Good shout! And yes, those descriptions sound good to me.

Great! Thanks for the feedback.


Is there a better term for that part of a flag than "box"? I am unaware of the technical descriptive terms for parts of a flag sweat_smile

Looking at the design descriptions in the Wikipedia articles corresponding to the two flags (Liberia's and Malaysia's), the "box" is described as a canton:

Eleven horizontal stripes alternating red and white; in the canton, a white star on a blue field

Fourteen horizontal stripes alternating red and white; in the canton, a yellow crescent and 14-point star on a blue field

AFAICT:

Advantages of using "canton"

Disadvantages of using "canton"

Advantages of using "box"

Disadvantages of usign "box"

Overall, my vote would go to "canton", perhaps with a hyperlink to the Wikipedia article (<a href="https://en.wikipedia.org/wiki/Canton_(flag)">canton</a>)?


Some brainstorming on these Scandinavian flags would be much welcomed

Sorry, I have no idea about clear, concise and useful comparisons.

axelboc commented 4 years ago

I feel like we're going a bit too far with this issue, in terms of scope. Although I agree that a few useful flag similarities are currently missing, the goal of the field remains to help differentiate the flags most people keep mixing up, even with repetition.

Do you really think most people confuse, for instance, the flags of Sweden, Denmark and Finland? In my personal experience, I've never had any trouble with them, mostly because the colours and the "weights" of the crosses are so different. I'm European, so I'm probably biased, but I believe that, with repetition and a bit of effort, these flags can be memorised. If people with different backgrounds than mine keep tripping on them no matter what, then flag similarities are justified.

It's also an important part of learning to find your own ways of remembering things, whether by doing some research or by coming up with mnemonics. For instance:

My point is, learning flags is difficult. Mixing up a couple of them from time to time is normal. Let's make sure that the flag similarities we add are really needed and beneficial to most.


So, I guess my question is: do you, personally, keep on confusing, over and over, any of the following pairs of flags that do not currently have flag similarities?

  1. France, Italy
  2. Tajikistan, Hungary
  3. Hungary, Netherlands/Luxembourg
  4. Tajikistan, Netherlands/Luxembourg
  5. Paraguay, Netherlands/Luxembourg
  6. Norway, Faroe Islands
  7. Iceland, Faroe Islands
  8. Turkey, Northern Cyprus
  9. Benin, Guinea-Bissau
  10. Isle of Man, Sicily
  11. Ghana, Bolivia
  12. Liberia, Malaysia
  13. ... any others?

There's already a flag similarity in the deck for Iceland and Norway, but only on the note for Iceland, not on the note for Norway. Personally, the one that regularly trips me up is the pair Iceland / Faroe Islands, so it might be beneficial to add cross-similarities to all three notes: Iceland, Norway and the Faroe Islands.

I've tripped on Sicily and Isle of Man a while back, but that's because Sicily didn't use to be in the original Ultimate Geography deck. The flag of Sicily is actually quite distinctive with its diagonal, yellow half.

I don't believe I've ever tripped on the others before, but I'm eager to hear about your own experiences.

axelboc commented 4 years ago

I should clarify that I'm totally on board with improving the wording of the existing flag similarities. Some of them are indeed quite useless.

axelboc commented 4 years ago

Also, sorry for reacting so late... When I re-opened this issue, I knew that there were still some improvements to be made, but I had not taken the time to really compare the flags you had listed, @ohare93. My apologies.

EDIT - I've removed the comments regarding the double quotes in data.csv, as I think we've summarised the issue in #129

aplaice commented 4 years ago

For some of the flag similarities, I treat them as an aide for remembering the flag by helping identify common patterns, not as a way of avoiding confusing similar flags. For instance, for the Egypt, Sudan, Syria and Yemen group, it's useful (for me) to remember that the red and the black are on the top and bottom, respectively, for the entire group as a whole.

Of the flag pairs/groups you listed, I have used the similarities to remember the ordering of the stripes for the following:

  1. Tajikistan, Hungary
  2. Paraguay, Netherlands/Luxembourg
  3. Ghana, Bolivia

I haven't confused any of the pairs you listed, though. Hence, you may well be right that listing the similarities for them might be out-of-scope for the "flag similarities" field.

axelboc commented 4 years ago

Oh right, I get you! You're talking about the extended deck's Country - Flag template, aren't you? I had never considered what role the similarities played in this case. Very interesting.

The purpose is quite different, indeed. The current similarities are meant to teach what to look for on a flag in order to differentiate it from another the next time you see it.

With the Country - Flag template, it seems that what is needed is a hint as to which countries have similar flags in order to jog your memory (as chances are you already know what one of the other flags looks like). If that's the case, then perhaps we need to add a new field and display it on the front of the Country - Flag template as a hint field (so it can be revealed on demand).

aplaice commented 4 years ago

You're talking about the extended deck's Country - Flag template, aren't you?

Yes.

If that's the case, then perhaps we need to add a new field and display it on the front of the Country - Flag template as a hint field (so it can be revealed on demand).

That makes sense, though I don't currently have a great idea on how exactly to organise this. In the meantime, I'll close my over-enthusiastic similarities pull request, at least for the time being, pending (potential) re-organistion. :)

axelboc commented 4 years ago

Hopefully, PR #125 covers all remaining flag similarities in the context of the Flag - Country template. If not, let's open new issues to discuss specific similarities.

I'll open a separate issue so we can discuss the case of the Country - Flag template.

ohare93 commented 4 years ago

Hmm, I see I have been coming at this from a more completionist view, of "anything that is similar needs to state it is so". I understand if you want a more minimal approach of "if it will help someone", I guess I just see this as a hard thing to judge who around the world will be confused by what flags depending mainly on their location. For flags like Italy/France I have never once been confused between them (also being a European), however it is undeniable that they are similar, and very possible that others around the world may be confused by it.

My point is, learning flags is difficult. Mixing up a couple of them from time to time is normal. Let's make sure that the flag similarities we add are really needed and beneficial to most.

I completely agree with everything you said about learning your own ways to differentiate and remember. I suppose I just never considered that not adding a similarity was the default 🤔 and the flag similarities were there to help with this differentiation, not to replace it.

Anyways feel free and see all my not yet implemented flag similarity claims as being made for these reasons 😅 👍 Yes, I have gotten some of these mixed up (mostly Liberia/Malysia, Benin/Guinea-Bissau). The others have been one-off wrong answers, or simply ones I noticed were similar and noted down for the sake of it.

axelboc commented 4 years ago

I just never considered that not adding a similarity was the default

Fair enough! I'd never made that clear, sorry 😅

I guess I just see this as a hard thing to judge who around the world will be confused by what flags

You're totally right. Waiting to hear from people's experiences and relying on biased intuition is definitely not the best approach... Perhaps we need to identify and document a more reliable and objective list of criteria/guidelines for flag similarities?


If that sounds useful, here are some initial ideas for criteria that may help identify whether two or more flags are "similar-enough" to warrant having flag similarities info in this deck:

  1. The flags differ in ways that can be described both precisely and clearly. If we're not sure about how to describe some of the differences without being vague or without using advanced vexillological terms, it's a pass.
  2. The flags differ in ways that can be described both concisely and exhaustively. If there are just too many differences to describe, or if some of the differences are too long to describe, it's a pass.
  3. A group of similar flags forms a complete graph - i.e. each flag is similar to every other flag in the group. I think this is important for the user's comprehension and for our sanity as contributors (cf. example further down).

Alternatively, we could go ahead and specify exactly which and how many differences two similar flags are allowed to have to be qualified as such. For instance, knowing the following differences:

Critical differences

Major differences

Minor differences

Two flags could then be qualified as "similar" if they had:

I purposely didn't add "different color at specific position" to the list of differences, as I believe this is too broad and would lead to chains of similarities rather than groups (i.e. incomplete graphs) - e.g. Ireland => Italy => France => Chad/Romania => Guinea => ...

We'd have to go through existing and candidate flag similarities to finish the list of differences and iron out the rules, but I reckon it's doable. This may very well lead to some existing similarities being removed and new ones being added, but we'll have done so with a bit more of an objective approach. What do you think?

aplaice commented 4 years ago

I think that these guidelines are sensible.

For the cases where the similarity descriptions will be removed — e.g. that between Thailand's and Costa Rica's "updated" (state, not civil) flags (I can't think of any others at the moment) — I think it makes sense.

In the Thailand-Costa Rica case, while the similarity description was useful for distinguishing Thailand's flag and Costa Rica's "old" (civil, not state) flag, I don't think that anybody would confuse the current pair. (I believe that their similarity would still be useful as a mnemonic for the Country -> Flag cards, but as agreed, that's not in scope for this issue.)

ohare93 commented 4 years ago

@alexboc sounds great to me! 👍 I completely agree with @aplaice

Thank you for taking the time to expand your thoughts and set some guidelines here. I think these will serve splendidly to keep us going on future flag similarity discussions 😁

I will review my previous flag similarity entries in the light of the new guidelines at some point, whenever I have the time/drive. They are not a high priority in my mind though, so anyone please feel free to lead the charge here 👍

axelboc commented 4 years ago

Pheww! 😤 I've audited all existing and potential flag similarities against the rules I suggested in my comment.

For starters, I decided to add a fourth difference category: negligible differences for those cases where the widths and/or the colours of two flags differ ever so slightly. These differences would typically not be mentioned in the flag similarity field unless they are the only differences (e.g. Romania / Chad). Here are some examples of what I mean:

Without further ado, below is the full audit along with potential resolution steps. FYI, I've put the steps I think we should take in bold.

Existing similarities

Potential similarities


Clearly the differences in colour and width are tricky to categorise. I've done my best to decide whether they were negligible or not in each case, but please do tell me if you disagree with any of it.

UPDATE

See later comments: this one, and this one.

aplaice commented 4 years ago

Wow! That was thorough!

I think I agree with everything.

(Increasing the limit to 3m, to allow Bahrain/Qatar, which (in my experience) can indeed be hard to distinguish, makes sense.

I'm on the fence regarding Jordan/Palestine, but I don't actually remember confusing them, so I think I agree with your decision.)

axelboc commented 4 years ago

I'm having second thoughts about Andorra / Romania/Chad. If I add the similarities, then the group Andorra / Moldova / Romania / Chad forms a graph that's not quite complete. It's a pretty arbitrary guideline, but it's worth a second thought, I think... Arguably, Andorra's blue is quite different, but is it different-enough that the difference should be categorised as non-negligible, and therefore the similarities not be added? Are the two blues more different than the two greens of Tajikistan and Hungary?

aplaice commented 4 years ago

Are the two blues more different than the two greens of Tajikistan and Hungary?

Apparently, no (unfortunately!). Using the not-exactly accurate Euclidean RGB distance between the colours (and not the fancy CIELAB ΔE):

import math

def colour_tuple(rgb_s):
   r = int(rgb_s[1:3], 16)
   g = int(rgb_s[3:5], 16)
   b = int(rgb_s[5:7], 16)
   return (r,g,b)

def colour_difference(rgb_s1, rgb_s2):
   (r1, g1, b1) = colour_tuple(rgb_s1)
   (r2, g2, b2) = colour_tuple(rgb_s2)
   return math.sqrt((r1-r2)**2 + (g1-g2)**2 + (b1-b2)**2)

# taken from within svg
# blues
romania = '#002B7F'
andorra = '#0018a8'
chad = '#002664'

# greens
hungary = '#436F4D'
tajikistan = '#006600'

colour_difference(hungary, tajikistan)
# 102.46462804304713

colour_difference(romania, andorra)
# 45.18849411078001

colour_difference(chad, andorra)
# 69.42621983083913

# for comparison
colour_difference(romania, chad)
# 27.459060435491963
axelboc commented 4 years ago

Brilliant, I don't know why I didn't think of that. I had nothing better to do, so I adapted a spreadsheet I found online to compute DELTA E colour differences :

Delta E calculator.zip

I updated my comment above as follows:

If you disagree with any of these updated rules, I'll happily adjust the audit.

axelboc commented 4 years ago

Instead of adding 0C 1M 2m, I could adjust the threshold to 35, which would still exclude Andorra / Romania/Chad, and still include Cuba / Puerto Rico, but would remove Curacao / Nauru.

aplaice commented 4 years ago

This is amazing!

It'd be a shame to remove Curaçao / Nauru — I've confused them in the Flag -> Country cards — so I'd lean towards adding 0C 1M 2m, rather than raising the threshold (shamelessly fitting policy to achieve the right goal...).

Independently of this, I'm not sure whether the colour difference criterion should not be laxer when the colours are swapped or rotated. I know that humans are better at distinguishing colours when they're placed next to each other, than when they're shown separately. I'd guess, though I can't find any studies on this, that it's also easier to distinguish colours in separately shown images when the colours are in the same positions in the images.

OTOH, I might just be heavily over-complicating the issue, especially since this further adjustment wouldn't be needed to include/exclude specific pairs.

axelboc commented 4 years ago

I like the way you think! Let's keep a single threshold for now, but I'll keep this in mind for the future. Been slammed this month, but I'll try to finish the work on this and release v3.2 asap.

axelboc commented 4 years ago

I was about to add similarities for Malaysia and Liberia until I realised that, in the audit, I missed the fact that the symbols have different colours! I feel like it makes for a fourth minor difference, which means that the flags no longer qualify as similar. What to you think? To be honest, I was having trouble finding a concise, yet exhaustive-enough description of the differences...

axelboc commented 4 years ago

Alright, I'm done! I've documented the guidelines in CONTRIBUTING.md. Let me know if you spot any mistake or incoherence. 😉

aplaice commented 4 years ago

Sorry for the lack of replies for so long!

CONTRIBUTING.md looks great!

I was about to add similarities for Malaysia and Liberia until I realised that, in the audit, I missed the fact that the symbols have different colours! I feel like it makes for a fourth minor difference, which means that the flags no longer qualify as similar. What to you think?

I agree with your decision — I've never confused the two flags and I think that they're different enough not to need a similarity comment.