Delete geek_decode.py

This commit is contained in:
jeremy rutman 2022-09-08 18:53:41 -05:00 committed by GitHub
parent 88c2ed1bb0
commit 0767992cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +0,0 @@
# geek_code 5.x decoder
import re
import codes
def parse_geekcode(s):
full_meaning = []
remaining_string = s
for d in [codes.geek_of]:
for code,meaning in d.items():
search_string = r'\b' + code + r'\b'
m = re.search(search_string,s)
if m:
print(f'looking for {search_string} in {remaining_string}')
remaining_string = re.sub(search_string, '', remaining_string)
full_meaning.append(meaning)
return(full_meaning, remaining_string)