Get punctuation working with plurals
This commit is contained in:
parent
f8e6619a12
commit
973661fcbf
1 changed files with 4 additions and 4 deletions
|
|
@ -41,11 +41,11 @@ def translator(english):
|
||||||
if word[lengthier] == 's' or word[lengthiest] == 's':
|
if word[lengthier] == 's' or word[lengthiest] == 's':
|
||||||
englishList[i] = pirate[newWord] + 's'
|
englishList[i] = pirate[newWord] + 's'
|
||||||
|
|
||||||
if not word[lengthiest].isalpha():
|
if not word[lengthier].isalpha():
|
||||||
englishList[i] = pirate[newWord] + word[lengthiest]
|
englishList[i] = pirate[newWord] + 's' + word[lengthier]
|
||||||
|
|
||||||
elif not word[lengthiest].isalpha():
|
elif not word[lengthier].isalpha():
|
||||||
englishList[i] = pirate[newWord] + word[lengthiest]
|
englishList[i] = pirate[newWord] + word[lengthier]
|
||||||
else:
|
else:
|
||||||
englishList[i] = pirate[newWord]
|
englishList[i] = pirate[newWord]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue