Increase the hashtag match length

main
Bob Mottram 2021-07-13 09:35:29 +01:00
parent ba77de00b2
commit 33ecd05abb
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ def guessHashtagCategory(tagName: str, hashtagCategories: {}) -> str:
for categoryStr, hashtagList in hashtagCategories.items():
for hashtag in hashtagList:
if len(hashtag) < 3:
if len(hashtag) < 4:
# avoid matching very small strings which often
# lead to spurious categories
continue