Skip to content

Commit dead673

Browse files
committed
correct spelling mistakes
1 parent 34d6a86 commit dead673

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/customize.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Editable attributes of nameparser.config.CONSTANTS
4343
* :py:obj:`~nameparser.config.Constants.first_name_titles` - Titles that, when followed by a single name, that name is a first name, e.g. "King David"
4444
* :py:obj:`~nameparser.config.Constants.suffix_acronyms` - Pieces that come at the end of the name that may or may not have periods separating the letters, e.g. "m.d."
4545
* :py:obj:`~nameparser.config.Constants.suffix_not_acronyms` - Pieces that come at the end of the name that never have periods separating the letters, e.g. "Jr."
46-
* :py:obj:`~nameparser.config.Constants.conjunctions` - Connectors like "and" that join the preceeding piece to the following piece.
47-
* :py:obj:`~nameparser.config.Constants.prefixes` - Connectors like "del" and "bin" that join to the following piece but not the preceeding
46+
* :py:obj:`~nameparser.config.Constants.conjunctions` - Connectors like "and" that join the preceding piece to the following piece.
47+
* :py:obj:`~nameparser.config.Constants.prefixes` - Connectors like "del" and "bin" that join to the following piece but not the preceding
4848
* :py:obj:`~nameparser.config.Constants.capitalization_exceptions` - Dictionary of pieces that do not capitalize the first letter, e.g. "Ph.D"
4949
* :py:obj:`~nameparser.config.Constants.regexes` - Regular expressions used to find words, initials, nicknames, etc.
5050

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ You can change the default formatting for all `HumanName` instances by setting a
136136
>>> str(name)
137137
'Robert (Rob) Johnson'
138138

139-
You can control the order and presense of any name fields by changing the
139+
You can control the order and presence of any name fields by changing the
140140
:py:attr:`~nameparser.config.Constants.string_format` attribute of the shared CONSTANTS instance.
141141
Don't want to include nicknames in your output? No problem. Just omit that keyword from the
142142
`string_format` attribute.

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,15 +1465,15 @@ def test_two_suffixes(self):
14651465
hn = HumanName("Kenneth Clarke QC MP")
14661466
self.m(hn.first, "Kenneth", hn)
14671467
self.m(hn.last, "Clarke", hn)
1468-
# NOTE: this adds a comma when the orginal format did not have one.
1468+
# NOTE: this adds a comma when the original format did not have one.
14691469
# not ideal but at least its in the right bucket
14701470
self.m(hn.suffix, "QC, MP", hn)
14711471

14721472
def test_two_suffixes_lastname_comma_format(self):
14731473
hn = HumanName("Washington Jr. MD, Franklin")
14741474
self.m(hn.first, "Franklin", hn)
14751475
self.m(hn.last, "Washington", hn)
1476-
# NOTE: this adds a comma when the orginal format did not have one.
1476+
# NOTE: this adds a comma when the original format did not have one.
14771477
self.m(hn.suffix, "Jr., MD", hn)
14781478

14791479
def test_two_suffixes_suffix_comma_format(self):

0 commit comments

Comments
 (0)