localdex 0.2.38__py3-none-any.whl → 0.2.39__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- localdex/name_normalizer.py +19 -0
- {localdex-0.2.38.dist-info → localdex-0.2.39.dist-info}/METADATA +1 -1
- {localdex-0.2.38.dist-info → localdex-0.2.39.dist-info}/RECORD +6 -6
- {localdex-0.2.38.dist-info → localdex-0.2.39.dist-info}/WHEEL +0 -0
- {localdex-0.2.38.dist-info → localdex-0.2.39.dist-info}/entry_points.txt +0 -0
- {localdex-0.2.38.dist-info → localdex-0.2.39.dist-info}/top_level.txt +0 -0
localdex/name_normalizer.py
CHANGED
@@ -51,6 +51,25 @@ class PokemonNameNormalizer:
|
|
51
51
|
Processed name
|
52
52
|
"""
|
53
53
|
name_lower = name.lower()
|
54
|
+
if 'urshifu' in name_lower:
|
55
|
+
if 'single' in name_lower:
|
56
|
+
return 'urshifu-single-strike'
|
57
|
+
elif 'rapid' in name_lower:
|
58
|
+
return 'urshifu-rapid-strike'
|
59
|
+
else:
|
60
|
+
return 'urshifu-single-strike'
|
61
|
+
|
62
|
+
if 'zacian' in name_lower:
|
63
|
+
if 'crowned' in name_lower:
|
64
|
+
return 'zacian-crowned'
|
65
|
+
else:
|
66
|
+
return 'zacian'
|
67
|
+
|
68
|
+
if 'zamzenta' in name_lower:
|
69
|
+
if 'crowned' in name_lower:
|
70
|
+
return 'zamzenta-crowned'
|
71
|
+
else:
|
72
|
+
return 'zamzenta'
|
54
73
|
|
55
74
|
if 'necrozma' in name_lower:
|
56
75
|
if 'dawn' in name_lower:
|
@@ -4,7 +4,7 @@ localdex/core.py,sha256=0kjuL388OniX7hRG6c5fT72nCC76LolpAB2UFrNXPns,20480
|
|
4
4
|
localdex/data_loader.py,sha256=hi9aSTto5Ti-OBGOgrQ-XwD5hmivsUwS1uC4rulhwQI,11366
|
5
5
|
localdex/download_data.py,sha256=T4A3OliGe2RsrRV1glyCqRcFhQIRt29KcY1K1-IqTuU,21597
|
6
6
|
localdex/exceptions.py,sha256=Z02-8Kci6jFDk2nnGdVSHZJMDDWE9vuwuASs4VM3To8,2777
|
7
|
-
localdex/name_normalizer.py,sha256=
|
7
|
+
localdex/name_normalizer.py,sha256=36PK1txN3P8CGUUIr_tGkKD1yLLMbCmfGmryCdwYblI,4285
|
8
8
|
localdex/data/abilities/adaptability.json,sha256=FGEEZmL80YVcIXHV-h287Wu-UJycM1QEJxiOHK2I4mY,289
|
9
9
|
localdex/data/abilities/aerilate.json,sha256=KRZOVH2KGdEQ_3UktFoXoagUOaC8jIPZ6Ti-YGzW44s,301
|
10
10
|
localdex/data/abilities/aftermath.json,sha256=Awv_8jquu3pM4CemD5ylS1v83ABrqGtrgMEkL-1ldBk,285
|
@@ -4826,8 +4826,8 @@ localdex/models/ability.py,sha256=AQzv3XUHHl4sustMJjPDDjJOjXu2GMLTfcM3-tqQ_1w,30
|
|
4826
4826
|
localdex/models/item.py,sha256=zXao8F-jBPUGq_YLeGeYeK_dZVI7aZMXtWOPwR3qusY,4677
|
4827
4827
|
localdex/models/move.py,sha256=hfgcWI4ziz5MMvc9ddmkotxzYYdrSUqZZQ72IU5tucs,7629
|
4828
4828
|
localdex/models/pokemon.py,sha256=glnOiEhkFc25U54hJHwUkT-okUgtL2prg3269YXI3w0,5422
|
4829
|
-
localdex-0.2.
|
4830
|
-
localdex-0.2.
|
4831
|
-
localdex-0.2.
|
4832
|
-
localdex-0.2.
|
4833
|
-
localdex-0.2.
|
4829
|
+
localdex-0.2.39.dist-info/METADATA,sha256=uQCeAUZtWDcb_vVwiH4zeer0h9_TrXpVVzIo9RCR7rE,8016
|
4830
|
+
localdex-0.2.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
4831
|
+
localdex-0.2.39.dist-info/entry_points.txt,sha256=n5GxSeQo-MRuvrT2wVk7hOzEFFsWf6tkBjkzmGIYJe4,47
|
4832
|
+
localdex-0.2.39.dist-info/top_level.txt,sha256=vtupDMH-IaxVCoEZrmE0QzdTwhaKzngVJbTA1NkR_MY,9
|
4833
|
+
localdex-0.2.39.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|