Skip to content

Commit

Permalink
Update persian_names.py
Browse files Browse the repository at this point in the history
  • Loading branch information
armanyazdi committed May 27, 2023
1 parent ac2dbfe commit caf0ef5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions persian_names/persian_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def lastname_en():
'Haj',
'Haji',
'Soufi',
'Afzal',
'Fazel',
'Sheikh',
'Mirza',
'Ostad',
Expand Down Expand Up @@ -73,6 +75,7 @@ def lastname_en():
'azad', '',
'zare', '',
'moghaddam', '',
'roshan', '',
]
more_suffixes = [
'pour', 'i',
Expand All @@ -99,7 +102,7 @@ def lastname_en():
for i in names[:26]:
arabic_names.append(i)

for i in names[26:50]:
for i in names[26:51]:
illegal_names.append(i)

while last_name in illegal_names:
Expand Down Expand Up @@ -186,6 +189,8 @@ def lastname_fa():
'حاج ',
'حاجی ',
'صوفی ',
'افضل ',
'فاضل ',
'شیخ ',
'میرزا ',
'استاد ',
Expand Down Expand Up @@ -216,6 +221,7 @@ def lastname_fa():
' آزاد', '',
' زارع', '',
' مقدم', '',
' روشن', '',
]
more_suffixes = [
' پور', 'ی',
Expand All @@ -242,7 +248,7 @@ def lastname_fa():
for i in names[:26]:
arabic_names.append(i)

for i in names[26:50]:
for i in names[26:51]:
illegal_names.append(i)

while last_name in illegal_names:
Expand Down

0 comments on commit caf0ef5

Please sign in to comment.