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
|
that they appear
|
||||||
"""
|
"""
|
||||||
plainText = removeHtml(content)
|
plainText = removeHtml(content)
|
||||||
removeChars = ('.', ';', '?')
|
removeChars = ('.', ';', '?', '\n')
|
||||||
for ch in removeChars:
|
for ch in removeChars:
|
||||||
plainText = plainText.replace(ch, ' ')
|
plainText = plainText.replace(ch, ' ')
|
||||||
wordsList = plainText.split(' ')
|
wordsList = plainText.split(' ')
|
||||||
|
@ -510,7 +510,7 @@ def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
|
||||||
'been', 'over', 'their', 'where', 'could', 'though',
|
'been', 'over', 'their', 'where', 'could', 'though',
|
||||||
'like', 'think', 'same', 'maybe', 'really', 'thing',
|
'like', 'think', 'same', 'maybe', 'really', 'thing',
|
||||||
'something', 'possible', 'actual', 'actually',
|
'something', 'possible', 'actual', 'actually',
|
||||||
'because', 'around', 'having', 'I'
|
'because', 'around', 'having'
|
||||||
)
|
)
|
||||||
for word in wordsList:
|
for word in wordsList:
|
||||||
wordLen = len(word)
|
wordLen = len(word)
|
||||||
|
|
Loading…
Reference in New Issue