add 'ben' and 'le' to surname suffixes (which are actually prefixes, btw)

This commit is contained in:
rolux 2012-09-12 21:45:34 +02:00
parent 654bd0da0e
commit 327dd21d5c

View file

@ -103,8 +103,10 @@ def normalize_imdbid(imdbId):
# Common suffixes in surnames. # Common suffixes in surnames.
_sname_suffixes = ('de', 'la', 'der', 'den', 'del', 'y', 'da', 'van', _sname_suffixes = (
'e', 'von', 'vom', 'the', 'di', 'du', 'el', 'al') 'al', 'ben', 'da', 'de', 'del', 'den', 'der', 'di', 'du',
'e', 'el', 'la', 'le', 'the', 'vom', 'von', 'van', 'y'
)
def canonical_name(name): def canonical_name(name):
"""Return the given name in canonical "Surname, Name" format. """Return the given name in canonical "Surname, Name" format.