We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab4d94 commit 3ed552eCopy full SHA for 3ed552e
pythainlp/soundex/lk82.py
@@ -44,7 +44,7 @@ def lk82(text):
44
res.append(text[0].translate(_TRANS1))
45
text = text[1:]
46
else:
47
- if len(text) > 0:
+ if len(text) > 1:
48
res.append(text[1].translate(_TRANS1))
49
res.append(text[0].translate(_TRANS2))
50
text = text[2:]
0 commit comments