mirror of https://gitlab.com/bashrc2/epicyon
Compare lower case
parent
2d31488d49
commit
e6be377a10
4
posts.py
4
posts.py
|
@ -484,7 +484,7 @@ def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
|
||||||
'need', 'here', 'would', 'these', 'into', 'very',
|
'need', 'here', 'would', 'these', 'into', 'very',
|
||||||
'well', 'when', 'what', 'your', 'there', 'which',
|
'well', 'when', 'what', 'your', 'there', 'which',
|
||||||
'even', 'there', 'such', 'just', 'those', 'only',
|
'even', 'there', 'such', 'just', 'those', 'only',
|
||||||
'will', 'much'
|
'will', 'much', 'than'
|
||||||
)
|
)
|
||||||
for word in wordsList:
|
for word in wordsList:
|
||||||
wordLen = len(word)
|
wordLen = len(word)
|
||||||
|
@ -500,7 +500,7 @@ def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
|
||||||
continue
|
continue
|
||||||
if word.endswith(':'):
|
if word.endswith(':'):
|
||||||
word = word.replace(':', '')
|
word = word.replace(':', '')
|
||||||
if word in commonWords:
|
if word.lower() in commonWords:
|
||||||
continue
|
continue
|
||||||
if wordFrequency.get(word):
|
if wordFrequency.get(word):
|
||||||
wordFrequency[word] += 1
|
wordFrequency[word] += 1
|
||||||
|
|
Loading…
Reference in New Issue