emoji: Run generate_emoji_names with up-to-date data.

This commit is contained in:
evykassirer 2023-07-26 17:00:41 -07:00 committed by Tim Abbott
parent b386cb5347
commit 0930e5a78f
2 changed files with 42 additions and 14 deletions

View File

@ -271,7 +271,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f1f9-1f1f2": {"canonical_name": "flag_turkmenistan", "aliases": []},
"1f1f9-1f1f3": {"canonical_name": "flag_tunisia", "aliases": []},
"1f1f9-1f1f4": {"canonical_name": "flag_tonga", "aliases": []},
"1f1f9-1f1f7": {"canonical_name": "flag_turkey", "aliases": []},
"1f1f9-1f1f7": {"canonical_name": "flag_türkiye", "aliases": ["flag_turkiye"]},
"1f1f9-1f1f9": {"canonical_name": "flag_trinidad_and_tobago", "aliases": []},
"1f1f9-1f1fb": {"canonical_name": "flag_tuvalu", "aliases": []},
"1f1f9-1f1fc": {"canonical_name": "flag_taiwan", "aliases": []},
@ -567,10 +567,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f3ef": {"canonical_name": "shiro", "aliases": []},
"1f3f0": {"canonical_name": "castle", "aliases": []},
"1f3f3-200d-1f308": {"canonical_name": "rainbow_flag", "aliases": []},
"1f3f3-fe0f-200d-26a7-fe0f": {
"canonical_name": "transgender_flag",
"aliases": ["light_blue", "pink"],
},
"1f3f3-fe0f-200d-26a7-fe0f": {"canonical_name": "transgender_flag", "aliases": []},
"1f3f3": {"canonical_name": "white_flag", "aliases": ["surrender"]},
"1f3f4-200d-2620": {"canonical_name": "pirate_flag", "aliases": ["jolly_roger", "plunder"]},
"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f": {"canonical_name": "flag_england", "aliases": []},
@ -590,7 +587,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f405": {"canonical_name": "tiger", "aliases": []},
"1f406": {"canonical_name": "leopard", "aliases": []},
"1f407": {"canonical_name": "rabbit", "aliases": []},
"1f408-200d-2b1b": {"canonical_name": "black_cat", "aliases": ["black", "unlucky"]},
"1f408-200d-2b1b": {"canonical_name": "black_cat", "aliases": ["unlucky"]},
"1f408": {"canonical_name": "cat", "aliases": ["meow"]},
"1f409": {"canonical_name": "dragon", "aliases": []},
"1f40a": {"canonical_name": "crocodile", "aliases": []},
@ -622,6 +619,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f423": {"canonical_name": "hatching", "aliases": ["hatching_chick"]},
"1f424": {"canonical_name": "chick", "aliases": ["baby_chick"]},
"1f425": {"canonical_name": "new_baby", "aliases": []},
"1f426-200d-2b1b": {"canonical_name": "black_bird", "aliases": ["crow", "raven", "rook"]},
"1f426": {"canonical_name": "bird", "aliases": []},
"1f427": {"canonical_name": "penguin", "aliases": []},
"1f428": {"canonical_name": "koala", "aliases": []},
@ -1311,6 +1309,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f6d5": {"canonical_name": "hindu_temple", "aliases": ["hindu", "temple"]},
"1f6d6": {"canonical_name": "hut", "aliases": ["roundhouse", "yurt"]},
"1f6d7": {"canonical_name": "elevator", "aliases": ["hoist"]},
"1f6dc": {"canonical_name": "wireless", "aliases": ["internet", "network"]},
"1f6dd": {"canonical_name": "playground_slide", "aliases": ["amusement_park"]},
"1f6de": {"canonical_name": "wheel", "aliases": ["tire", "turn"]},
"1f6df": {
@ -1730,6 +1729,9 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"canonical_name": "thong_sandal",
"aliases": ["beach_sandals", "sandals", "thong_sandals", "thongs", "zōri", "zori"],
},
"1fa75": {"canonical_name": "light_blue_heart", "aliases": ["cyan", "teal"]},
"1fa76": {"canonical_name": "grey_heart", "aliases": ["gray", "slate"]},
"1fa77": {"canonical_name": "pink_heart", "aliases": []},
"1fa78": {
"canonical_name": "drop_of_blood",
"aliases": ["bleed", "blood_donation", "injury", "menstruation"],
@ -1745,6 +1747,11 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1fa84": {"canonical_name": "magic_wand", "aliases": ["magic"]},
"1fa85": {"canonical_name": "piñata", "aliases": ["pinata"]},
"1fa86": {"canonical_name": "nesting_dolls", "aliases": ["doll", "russia"]},
"1fa87": {
"canonical_name": "maracas",
"aliases": ["instrument", "percussion", "rattle", "shake"],
},
"1fa88": {"canonical_name": "flute", "aliases": ["fife", "pipe", "recorder", "woodwind"]},
"1fa90": {"canonical_name": "ringed_planet", "aliases": ["saturn", "saturnine"]},
"1fa91": {"canonical_name": "chair", "aliases": ["sit"]},
"1fa92": {"canonical_name": "razor", "aliases": ["sharp", "shave"]},
@ -1795,6 +1802,12 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"canonical_name": "hamsa",
"aliases": ["amulet", "fatima", "mary", "miriam", "protection"],
},
"1faad": {
"canonical_name": "folding_hand_fan",
"aliases": ["cooling", "fan", "flutter", "shy"],
},
"1faae": {"canonical_name": "hair_pick", "aliases": ["afro", "comb"]},
"1faaf": {"canonical_name": "khanda", "aliases": ["religion", "sikh"]},
"1fab0": {"canonical_name": "fly", "aliases": ["maggot", "rotting"]},
"1fab1": {"canonical_name": "worm", "aliases": ["annelid", "earthworm", "parasite"]},
"1fab2": {"canonical_name": "beetle", "aliases": []},
@ -1809,6 +1822,16 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1fab8": {"canonical_name": "coral", "aliases": ["reef"]},
"1fab9": {"canonical_name": "empty_nest", "aliases": []},
"1faba": {"canonical_name": "nest_with_eggs", "aliases": []},
"1fabb": {
"canonical_name": "hyacinth",
"aliases": ["bluebonnet", "lavender", "lupine", "snapdragon"],
},
"1fabc": {
"canonical_name": "jellyfish",
"aliases": ["invertebrate", "jelly", "marine", "ouch", "stinger"],
},
"1fabd": {"canonical_name": "wing", "aliases": ["angelic", "aviation", "flying", "mythology"]},
"1fabf": {"canonical_name": "goose", "aliases": ["fowl", "honk", "silly"]},
"1fac0": {
"canonical_name": "anatomical_heart",
"aliases": ["anatomical", "cardiology", "pulse"],
@ -1824,16 +1847,20 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"canonical_name": "person_with_crown",
"aliases": ["monarch", "noble", "regal", "royalty"],
},
"1face": {"canonical_name": "moose", "aliases": ["antlers", "elk"]},
"1facf": {"canonical_name": "donkey", "aliases": ["ass", "burro", "mule", "stubborn"]},
"1fad0": {"canonical_name": "blueberries", "aliases": ["berry", "bilberry", "blueberry"]},
"1fad1": {"canonical_name": "bell_pepper", "aliases": ["capsicum", "pepper", "vegetable"]},
"1fad1": {"canonical_name": "bell_pepper", "aliases": ["capsicum", "pepper"]},
"1fad2": {"canonical_name": "olive", "aliases": []},
"1fad3": {"canonical_name": "flatbread", "aliases": ["arepa", "lavash", "naan", "pita"]},
"1fad4": {"canonical_name": "tamale", "aliases": ["mexican", "wrapped"]},
"1fad5": {"canonical_name": "fondue", "aliases": ["melted", "swiss"]},
"1fad6": {"canonical_name": "teapot", "aliases": []},
"1fad7": {"canonical_name": "pouring_liquid", "aliases": ["spill"]},
"1fad8": {"canonical_name": "beans", "aliases": ["kidney", "legume"]},
"1fad8": {"canonical_name": "beans", "aliases": ["kidney"]},
"1fad9": {"canonical_name": "jar", "aliases": ["container", "sauce", "store"]},
"1fada": {"canonical_name": "ginger_root", "aliases": ["root", "spice"]},
"1fadb": {"canonical_name": "pea_pod", "aliases": ["edamame", "pea", "pod"]},
"1fae0": {"canonical_name": "melting_face", "aliases": ["dissolve", "liquid", "melt"]},
"1fae1": {"canonical_name": "saluting_face", "aliases": ["salute", "troops", "yes"]},
"1fae2": {
@ -1854,16 +1881,19 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
},
"1fae6": {"canonical_name": "biting_lip", "aliases": ["flirting", "uncomfortable"]},
"1fae7": {"canonical_name": "bubbles", "aliases": ["burp", "underwater"]},
"1fae8": {"canonical_name": "shaking_face", "aliases": ["earthquake", "shaking", "vibrate"]},
"1faf0": {
"canonical_name": "hand_with_index_finger_and_thumb_crossed",
"aliases": ["expensive", "snap"],
},
"1faf1": {"canonical_name": "rightwards_hand", "aliases": ["rightward"]},
"1faf2": {"canonical_name": "leftwards_hand", "aliases": ["leftward"]},
"1faf1": {"canonical_name": "rightwards_hand", "aliases": []},
"1faf2": {"canonical_name": "leftwards_hand", "aliases": []},
"1faf3": {"canonical_name": "palm_down_hand", "aliases": ["dismiss", "shoo"]},
"1faf4": {"canonical_name": "palm_up_hand", "aliases": ["beckon", "come", "offer"]},
"1faf5": {"canonical_name": "index_pointing_at_the_viewer", "aliases": ["point", "you"]},
"1faf6": {"canonical_name": "heart_hands", "aliases": []},
"1faf7": {"canonical_name": "leftwards_pushing_hand", "aliases": []},
"1faf8": {"canonical_name": "rightwards_pushing_hand", "aliases": []},
"203c": {"canonical_name": "bangbang", "aliases": ["double_exclamation"]},
"2049": {"canonical_name": "interrobang", "aliases": []},
"2122": {"canonical_name": "tm", "aliases": ["trademark"]},
@ -2023,10 +2053,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"2755": {"canonical_name": "grey_exclamation", "aliases": []},
"2757": {"canonical_name": "exclamation", "aliases": []},
"2763": {"canonical_name": "heart_exclamation", "aliases": []},
"2764-200d-1f525": {
"canonical_name": "heart_on_fire",
"aliases": ["burn", "lust", "sacred_heart"],
},
"2764-200d-1f525": {"canonical_name": "heart_on_fire", "aliases": ["lust", "sacred_heart"]},
"2764-200d-1fa79": {
"canonical_name": "mending_heart",
"aliases": ["healthier", "improving", "mending", "recovering", "recuperating", "well"],

View File

@ -107,6 +107,7 @@ def convert_non_ascii_chars(name: str) -> str:
"ã": "a",
"í": "i",
"å": "a",
"ü": "u",
}
for before, after in replacements.items():
name = name.replace(before, after)