This commit is contained in:
bronku 2025-12-06 12:35:51 +01:00
parent a47ef094af
commit c516afc400
13 changed files with 240 additions and 184 deletions

View file

@ -11,7 +11,7 @@ def count_words(text)
for word in words
word = word.delete('.,!?')
if __contains__(word_count, word)
word_count[word] = word_count[word] + 1
word_count[word] += 1
else
word_count[word] = 1
end