look for mentions with trailing :

This commit is contained in:
Paul Gauthier 2024-05-10 19:38:05 -07:00
parent 4a0c0a3913
commit 3171789b1f

View file

@ -744,7 +744,7 @@ class Coder:
words = set(word for word in content.split())
# drop sentence punctuation from the end
words = set(word.rstrip(",.!;") for word in words)
words = set(word.rstrip(",.!;:") for word in words)
# strip away all kinds of quotes
quotes = "".join(['"', "'", "`"])