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.
|
# 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.
|
||||||
|
|
Loading…
Reference in a new issue