not found proposition

This commit is contained in:
klemek
2020-04-25 13:41:01 +02:00
parent 2f5d0f8d30
commit dc4e68ad75
5 changed files with 63 additions and 35 deletions
+5
View File
@@ -165,3 +165,8 @@ def get_meme(name):
return DATA[ALIASES[name]].clone()
else:
return None
def find_nearest(word):
word = word.lower().strip().replace(" ", "_")
return utils.find_nearest(word, ALIASES.keys())