mirror of https://gitlab.com/bashrc2/epicyon
More common words
parent
f1ce208765
commit
4838dd5e02
4
posts.py
4
posts.py
|
@ -496,7 +496,7 @@ def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
|
|||
that they appear
|
||||
"""
|
||||
plainText = removeHtml(content)
|
||||
removeChars = ('.', ';', '?')
|
||||
removeChars = ('.', ';', '?', '\n')
|
||||
for ch in removeChars:
|
||||
plainText = plainText.replace(ch, ' ')
|
||||
wordsList = plainText.split(' ')
|
||||
|
@ -510,7 +510,7 @@ def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
|
|||
'been', 'over', 'their', 'where', 'could', 'though',
|
||||
'like', 'think', 'same', 'maybe', 'really', 'thing',
|
||||
'something', 'possible', 'actual', 'actually',
|
||||
'because', 'around', 'having', 'I'
|
||||
'because', 'around', 'having'
|
||||
)
|
||||
for word in wordsList:
|
||||
wordLen = len(word)
|
||||
|
|
Loading…
Reference in New Issue