@@ -36,10 +36,10 @@ class HumanName(object):
3636
3737 Instantiation assigns to ``full_name``, and assignment to
3838 :py:attr:`full_name` triggers :py:func:`parse_full_name`. After parsing the
39- name, these instance attributes are available. Alternatively, you can pass
39+ name, these instance attributes are available. Alternatively, you can pass
4040 any of the instance attributes to the constructor method and skip the parsing
41- process. If any of the the instance attributes are passed to the constructor
42- as keywords, :py:func:`parse_full_name` will not be performed.
41+ process. If any of the the instance attributes are passed to the constructor
42+ as keywords, :py:func:`parse_full_name` will not be performed.
4343
4444 **HumanName Instance Attributes**
4545
@@ -536,9 +536,9 @@ def parse_nicknames(self):
536536 Loops through 3 :py:data:`~nameparser.config.regexes.REGEXES`;
537537 `quoted_word`, `double_quotes` and `parenthesis`.
538538 """
539-
539+
540540 empty_re = re .compile ("" )
541-
541+
542542 re_quoted_word = self .C .regexes .quoted_word or empty_re
543543 re_double_quotes = self .C .regexes .double_quotes or empty_re
544544 re_parenthesis = self .C .regexes .parenthesis or empty_re
@@ -906,7 +906,7 @@ def join_on_conjunctions(self, pieces, additional_parts_count=0):
906906 # If it's the first piece and there are more than 1 rootnames, assume it's a first name
907907 continue
908908 next_prefix = next (iter (filter (self .is_prefix , pieces [i + 1 :])))
909- j = pieces .index (next_prefix )
909+ j = pieces .index (next_prefix , i + 1 )
910910 if j == i + 1 :
911911 # if there are two prefixes in sequence, join to the following piece
912912 j += 1
0 commit comments