bump, punctuation was overrided

This commit is contained in:
Piotr Domański 2022-12-03 16:06:06 +01:00
parent 129a5c6ce3
commit 345f494c0f

View file

@ -55,8 +55,8 @@ def generate_text(
word = word.capitalize()
if punctuation_factor and punctuation_factor / 100 > random():
punctuation = choice(punctuation)
word = "".join((word, punctuation))
chosen_punctuation = choice(punctuation)
word = "".join((word, chosen_punctuation))
new_sentence = word[-1] in sentence_ending
chosen_words.append(word)