add 'ben' and 'le' to surname suffixes (which are actually prefixes, btw)
This commit is contained in:
parent
654bd0da0e
commit
327dd21d5c
1 changed files with 4 additions and 2 deletions
|
@ -103,8 +103,10 @@ def normalize_imdbid(imdbId):
|
|||
|
||||
|
||||
# Common suffixes in surnames.
|
||||
_sname_suffixes = ('de', 'la', 'der', 'den', 'del', 'y', 'da', 'van',
|
||||
'e', 'von', 'vom', 'the', 'di', 'du', 'el', 'al')
|
||||
_sname_suffixes = (
|
||||
'al', 'ben', 'da', 'de', 'del', 'den', 'der', 'di', 'du',
|
||||
'e', 'el', 'la', 'le', 'the', 'vom', 'von', 'van', 'y'
|
||||
)
|
||||
|
||||
def canonical_name(name):
|
||||
"""Return the given name in canonical "Surname, Name" format.
|
||||
|
|
Loading…
Reference in a new issue