Skip to content

Commit

Permalink
purge apostrofs
Browse files Browse the repository at this point in the history
  • Loading branch information
WardDeb committed May 17, 2023
1 parent 74f0406 commit a9d1b29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dissectBCL/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ def umlautDestroyer(germanWord):
_o = 'ö'.encode()
_O = 'Ö'.encode()
_ss = 'ß'.encode()
_apstrf = "'".encode()

_string = germanWord.encode()
_string = _string.replace(_u, b'u')
Expand All @@ -374,6 +375,7 @@ def umlautDestroyer(germanWord):
_string = _string.replace(_o, b'o')
_string = _string.replace(_O, b'O')
_string = _string.replace(_ss, b'ss')
_string = _string.replace(_apstrf, b'')
return (_string.decode('utf-8').replace(' ', ''))


Expand Down

0 comments on commit a9d1b29

Please sign in to comment.