forked from expo/troggle
more synonyms
This commit is contained in:
parent
5f6359694d
commit
5eb6ef4d31
@ -177,6 +177,8 @@ Gpersonexpeditionnamelookup = {}
|
|||||||
|
|
||||||
|
|
||||||
def GetPersonExpeditionNameLookup(expedition):
|
def GetPersonExpeditionNameLookup(expedition):
|
||||||
|
"""Yes this should all be in an editable text file, not in the body of the code. Sorry.
|
||||||
|
"""
|
||||||
global Gpersonexpeditionnamelookup
|
global Gpersonexpeditionnamelookup
|
||||||
|
|
||||||
def apply_variations(f, l):
|
def apply_variations(f, l):
|
||||||
@ -231,6 +233,16 @@ def GetPersonExpeditionNameLookup(expedition):
|
|||||||
if f == "Rob".lower():
|
if f == "Rob".lower():
|
||||||
possnames += apply_variations("Robert", l)
|
possnames += apply_variations("Robert", l)
|
||||||
|
|
||||||
|
if f == "Lizzy".lower():
|
||||||
|
possnames += apply_variations("Lizzie", l)
|
||||||
|
if f == "Lizzie".lower():
|
||||||
|
possnames += apply_variations("Lizzy", l)
|
||||||
|
|
||||||
|
if f == "Phil".lower(): # needed when Phil is used with a surname initial, so default short-form does not work.
|
||||||
|
possnames += apply_variations("Philip", l)
|
||||||
|
if f == "Philip".lower():
|
||||||
|
possnames += apply_variations("Phil", l)
|
||||||
|
|
||||||
if f == "Andrew".lower():
|
if f == "Andrew".lower():
|
||||||
possnames += apply_variations("Andy", l)
|
possnames += apply_variations("Andy", l)
|
||||||
if f == "Andy".lower():
|
if f == "Andy".lower():
|
||||||
@ -289,8 +301,11 @@ def GetPersonExpeditionNameLookup(expedition):
|
|||||||
possnames.append("tinywoman")
|
possnames.append("tinywoman")
|
||||||
possnames.append("nadia rc")
|
possnames.append("nadia rc")
|
||||||
possnames.append("nadia raeburn-cherradi")
|
possnames.append("nadia raeburn-cherradi")
|
||||||
|
|
||||||
if f"{f} {l}" == "Phil Wigglesworth".lower():
|
if f"{f} {l}" == "Phil Wigglesworth".lower():
|
||||||
possnames.append("wiggy")
|
possnames.append("wiggy")
|
||||||
|
if f"{f} {l}" == "Philip Banister".lower():
|
||||||
|
possnames.append("crofton")
|
||||||
if f"{f} {l}" == "Elaine Oliver".lower():
|
if f"{f} {l}" == "Elaine Oliver".lower():
|
||||||
possnames.append("cavingpig")
|
possnames.append("cavingpig")
|
||||||
if f"{f} {l}" == "Tom Crossley".lower():
|
if f"{f} {l}" == "Tom Crossley".lower():
|
||||||
|
Loading…
Reference in New Issue
Block a user