Removing "a" as a synonym from all cats in English
This commit is contained in:
@@ -12550,7 +12550,6 @@
|
|||||||
"CatShort": "GAME",
|
"CatShort": "GAME",
|
||||||
"Explanations": "Game sounds not fitting another category in this list. Cards would go here. Jenga.",
|
"Explanations": "Game sounds not fitting another category in this list. Cards would go here. Jenga.",
|
||||||
"Synonyms": [
|
"Synonyms": [
|
||||||
"a",
|
|
||||||
"bag",
|
"bag",
|
||||||
"ball",
|
"ball",
|
||||||
"balloon",
|
"balloon",
|
||||||
@@ -22234,7 +22233,6 @@
|
|||||||
"CatShort": "VEH",
|
"CatShort": "VEH",
|
||||||
"Explanations": "Very old vehicles, such a Model A, Model T. Mainly cars, but possible other very old vehicles, trucks, tractors.",
|
"Explanations": "Very old vehicles, such a Model A, Model T. Mainly cars, but possible other very old vehicles, trucks, tractors.",
|
||||||
"Synonyms": [
|
"Synonyms": [
|
||||||
"a",
|
|
||||||
"antique",
|
"antique",
|
||||||
"austin",
|
"austin",
|
||||||
"auto",
|
"auto",
|
||||||
@@ -23550,7 +23548,6 @@
|
|||||||
"CatShort": "VOX",
|
"CatShort": "VOX",
|
||||||
"Explanations": "A single voice singing, a child singing. For a crowd, use CROWDS-SINGING",
|
"Explanations": "A single voice singing, a child singing. For a crowd, use CROWDS-SINGING",
|
||||||
"Synonyms": [
|
"Synonyms": [
|
||||||
"a",
|
|
||||||
"cappella",
|
"cappella",
|
||||||
"caroling",
|
"caroling",
|
||||||
"chanting",
|
"chanting",
|
||||||
|
@@ -86,6 +86,15 @@ for lang in langs:
|
|||||||
syn_list = re.split(split_pattern, syns_raw)
|
syn_list = re.split(split_pattern, syns_raw)
|
||||||
category['Synonyms'] = [s.lower() for s in syn_list]
|
category['Synonyms'] = [s.lower() for s in syn_list]
|
||||||
|
|
||||||
|
# if the sub-category name is not in the synonym list, include it
|
||||||
|
# if category['SubCategory'].lower() not in category['Synonyms']:
|
||||||
|
# category['Synonyms'].append(category['SubCategory'].lower())
|
||||||
|
|
||||||
|
if lang == 'en':
|
||||||
|
for i, syn in enumerate(category['Synonyms']):
|
||||||
|
if syn == "a":
|
||||||
|
del category['Synonyms'][i]
|
||||||
|
|
||||||
schedule.append(category)
|
schedule.append(category)
|
||||||
|
|
||||||
# and dump it to json
|
# and dump it to json
|
||||||
|
Reference in New Issue
Block a user