Extra character to avoid

main
Bob Mottram 2021-07-23 13:05:24 +01:00
parent df2a947516
commit 6826fed2e9
1 changed files with 3 additions and 1 deletions

View File

@ -508,7 +508,8 @@ def _getCommonWords() -> str:
'making', 'made', 'make', 'makes', 'including',
'includes', 'know', 'knowing', 'knows', 'things',
'say', 'says', 'saying', 'many', 'somewhat',
'problem', 'problems', 'idea', 'ideas'
'problem', 'problems', 'idea', 'ideas',
'using', 'uses'
)
def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
@ -531,6 +532,7 @@ def _updateWordFrequency(content: str, wordFrequency: {}) -> None:
if '&' in word or \
'"' in word or \
'@' in word or \
"'" in word or \
'://' in word:
continue
if word.lower() in commonWords: