Ignore initials and connectives when geenrating tokens for author name lookup

This commit is contained in:
Kovid Goyal 2011-03-04 10:21:31 -07:00
parent 71a9332dc5
commit 736cd93e65

View File

@ -65,6 +65,7 @@ class Source(Plugin):
parts = parts[1:] + parts[:1]
for tok in parts:
tok = pat.sub('', tok).strip()
if len(tok) > 2 and tok.lower() not in ('von', ):
yield tok