@@ -12,7 +12,7 @@ Changing the Predefined Variables
1212+++++++++++++++++++++++++++++++++
1313
1414There are a few ways to adjust the parser configuration depending on your needs.
15- The config is available via ``from nameparser.config import constants `` or on the
15+ The config is available via ``from nameparser.config import CONSTANTS `` or on the
1616``C `` attribute of a ``HumanName `` instance, e.g. ``hn.C ``. Take a look
1717at the :py:mod: `nameparser.config ` documentation to get a better idea what they are
1818and how they are used, but here's a quick walk through.
@@ -39,8 +39,8 @@ that "Hon" can be parsed as a first name.
3939 suffix: ''
4040 nickname: ''
4141 ]>
42- >>> from nameparser.config import constants
43- >>> constants .titles.remove('hon')
42+ >>> from nameparser.config import CONSTANTS
43+ >>> CONSTANTS .titles.remove('hon')
4444 >>> hn = HumanName("Hon Solo")
4545 >>> hn
4646 <HumanName : [
@@ -63,8 +63,8 @@ methods and each string will be added or removed.
6363::
6464
6565 >>> from nameparser import HumanName
66- >>> from nameparser.config import constants
67- >>> constants .titles.add('dean', 'Chemistry')
66+ >>> from nameparser.config import CONSTANTS
67+ >>> CONSTANTS .titles.add('dean', 'Chemistry')
6868 >>> hn = HumanName("Assoc Dean of Chemistry Robert Johns")
6969 >>> hn
7070 <HumanName : [
0 commit comments