File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 152
152
'discovery' ,
153
153
'district' ,
154
154
'division' ,
155
+ 'do' ,
155
156
'docent' ,
156
157
'docket' ,
157
158
'doctor' ,
253
254
'mcpo' ,
254
255
'mcpoc' ,
255
256
'mcpon' ,
257
+ 'md' ,
256
258
'member' ,
257
259
'metropolitan' ,
258
260
'mg' ,
Original file line number Diff line number Diff line change @@ -424,10 +424,12 @@ def parse_full_name(self):
424
424
self .first_list .append (piece )
425
425
continue
426
426
if self .are_suffixes (pieces [i + 1 :]) or \
427
- (self .is_roman_numeral (nxt ) and i == p_len - 2 \
428
- and not self .is_an_initial (piece )):
429
- # if the next piece is the last piece and a roman numeral
430
- # but this piece is not an initial
427
+ (
428
+ # if the next piece is the last piece and a roman numeral
429
+ # but this piece is not an initial
430
+ self .is_roman_numeral (nxt ) and i == p_len - 2
431
+ and not self .is_an_initial (piece )
432
+ ):
431
433
self .last_list .append (piece )
432
434
self .suffix_list += pieces [i + 1 :]
433
435
break
@@ -511,19 +513,6 @@ def parse_full_name(self):
511
513
self .post_process ()
512
514
513
515
514
- # def split_periods(self, pieces):
515
- # """
516
- # If there is a period that is not at the end of a piece, split it on periods.
517
- # """
518
- # tmp = []
519
- # for piece in pieces:
520
- # if piece[:-1].find('.') >= 0:
521
- # p = [_f for _f in piece.split('.') if _f]
522
- # tmp += [x+'.' for x in p]
523
- # else:
524
- # tmp += [piece]
525
- # return tmp
526
-
527
516
def parse_pieces (self , parts , additional_parts_count = 0 ):
528
517
"""
529
518
Split parts on spaces and remove commas, join on conjunctions and
You can’t perform that action at this time.
0 commit comments