Extra character to avoid

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