Skip to content

Commit 8dbb49e

Browse files
authored
Merge pull request #65 from EdwardBetts/spelling
correct spelling mistakes
2 parents 29727b9 + dead673 commit 8dbb49e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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
@@ -1476,15 +1476,15 @@ def test_two_suffixes(self):
14761476
hn = HumanName("Kenneth Clarke QC MP")
14771477
self.m(hn.first, "Kenneth", hn)
14781478
self.m(hn.last, "Clarke", hn)
1479-
# NOTE: this adds a comma when the orginal format did not have one.
1479+
# NOTE: this adds a comma when the original format did not have one.
14801480
# not ideal but at least its in the right bucket
14811481
self.m(hn.suffix, "QC, MP", hn)
14821482

14831483
def test_two_suffixes_lastname_comma_format(self):
14841484
hn = HumanName("Washington Jr. MD, Franklin")
14851485
self.m(hn.first, "Franklin", hn)
14861486
self.m(hn.last, "Washington", hn)
1487-
# NOTE: this adds a comma when the orginal format did not have one.
1487+
# NOTE: this adds a comma when the original format did not have one.
14881488
self.m(hn.suffix, "Jr., MD", hn)
14891489

14901490
def test_two_suffixes_suffix_comma_format(self):

0 commit comments

Comments
 (0)