in genre/utils.py [0:0]
def search_simple(anchor, lang, lang_title2wikidataID):
if "http" in anchor:
return True, []
unquoted = unquote(anchor).split("#")[0].replace("_", " ")
if unquoted == "":
return True, []
unquoted = unquoted[0].upper() + unquoted[1:]
if (lang, unquoted) in lang_title2wikidataID:
return True, lang_title2wikidataID[(lang, unquoted)]
else:
return False, unquoted