Skip to content

Commit ff73df5

Browse files
committed
alpha sort the constants so its easier to find things in the code.
fix duplicate test name
1 parent 962f235 commit ff73df5

File tree

4 files changed

+430
-442
lines changed

4 files changed

+430
-442
lines changed

README.rst

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ sets`_ of titles, prefixes, etc., or by subclassing the `HumanName` class. See t
7171
.. _customizing the configured pre-defined sets: http://nameparser.readthedocs.org/en/latest/customize.html
7272
.. _full documentation: http://nameparser.readthedocs.org/en/latest/
7373

74+
Documentation
75+
-------------
7476

75-
Unit Tests
76-
------------
77+
`Full documentation`_
7778

78-
Hundreds of unit tests with example names. `Start a New Issue`_
79-
for names that fail and I will try to fix it.
79+
.. _Full documentation: http://nameparser.readthedocs.org/en/latest/
8080

8181

8282
Installation
@@ -95,26 +95,13 @@ If you're looking for a web service, check out
9595
simple Heroku-friendly Flask wrapper for this module.
9696

9797

98-
Documentation
99-
-------------
100-
101-
Full documentation
102-
103-
http://nameparser.readthedocs.org/en/latest/
104-
105-
10698
Contributing
10799
------------
108100

109101
If you come across name piece that you think should be in the default config, you're
110102
probably right. `Start a New Issue`_ and we can get them added.
111103

112-
Or, use GitHub's nifty
113-
web interface to add your new pieces directly to the config files and create a pull
114-
request all in one go, no fork needed. As an example, `click here to propose changes to
115-
the titles`_ config.
116-
117-
Please let me know if there are ways this library could be restructured to make
104+
Please let me know if there are ways this library could be structured to make
118105
it easier for you to use in your projects. Read CONTRIBUTING.md_ for more info
119106
on running the tests and contributing to the project.
120107

nameparser/config/suffixes.py

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -2,97 +2,97 @@
22
from __future__ import unicode_literals
33

44
SUFFIX_ACRONYMS = set([
5-
'clu',
6-
'chfc',
5+
'ae',
6+
'afc',
7+
'afm',
8+
'arrc',
9+
'bart',
10+
'bem',
11+
'bt',
12+
'cb',
13+
'cbe',
714
'cfp',
15+
'cgc',
16+
'cgm',
17+
'ch',
18+
'chfc',
19+
'cie',
20+
'clu',
21+
'cmg',
822
'cpa',
23+
'cpm',
24+
'csi',
925
'csm',
10-
'do',
26+
'cvo',
27+
'dbe',
28+
'dcb',
29+
'dcm',
30+
'dcmg',
31+
'dcvo',
1132
'dds',
12-
'dpm',
33+
'dfc',
34+
'dfm',
1335
'dmd',
14-
'md',
15-
'mba',
16-
'ma',
17-
'phd',
18-
'phr',
19-
'pmp',
20-
'mp',
21-
'qc',
36+
'do',
37+
'dpm',
38+
'dsc',
39+
'dsm',
40+
'dso',
2241
'dvm',
42+
'ed',
43+
'erd',
2344
'gbe',
24-
'cpm',
25-
'cie',
26-
'bem',
27-
'cmg',
28-
'rrc',
29-
'qfsm',
30-
'bt',
31-
'cvo',
32-
'qgm',
33-
'ch',
34-
'iso',
35-
'qam',
36-
'vd',
37-
'kcvo',
45+
'gc',
46+
'gcb',
47+
'gcie',
48+
'gcmg',
49+
'gcsi',
50+
'gcvo',
3851
'gm',
39-
'vrd',
40-
'lg',
41-
'dcmg',
42-
'arrc',
43-
'qpm',
44-
'mbe',
45-
'cgc',
46-
'dcb',
52+
'idsm',
4753
'iom',
48-
'rvm',
54+
'iso',
4955
'kbe',
50-
'rd',
51-
'dsm',
52-
'lt',
53-
'sgm',
54-
'gcvo',
55-
'dcvo',
56-
'ae',
57-
'afm',
58-
'kcmg',
59-
'vc',
60-
'csi',
61-
'obi',
62-
'cb',
63-
'obe',
56+
'kcb',
6457
'kcie',
65-
'afc',
66-
'dfm',
67-
'dso',
58+
'kcmg',
6859
'kcsi',
69-
'dcm',
70-
'gc',
71-
'cgm',
72-
'lvo',
73-
'dsc',
74-
'dfc',
75-
'mvo',
76-
'gcie',
77-
'erd',
78-
'om',
79-
'idsm',
60+
'kcvo',
8061
'kg',
81-
'bart',
62+
'kp',
63+
'kt',
64+
'lg',
65+
'lt',
66+
'lvo',
67+
'ma',
68+
'mba',
69+
'mbe',
8270
'mc',
83-
'kcb',
71+
'md',
8472
'mm',
85-
'cbe',
86-
'dbe',
73+
'mp',
8774
'msm',
88-
'gcmg',
75+
'mvo',
76+
'obe',
77+
'obi',
78+
'om',
79+
'phd',
80+
'phr',
81+
'pmp',
82+
'qam',
83+
'qc',
84+
'qfsm',
85+
'qgm',
86+
'qpm',
87+
'rd',
88+
'rrc',
89+
'rvm',
90+
'sgm',
8991
'td',
90-
'kp',
91-
'ed',
92-
'gcb',
93-
'kt',
9492
'ud',
95-
'gcsi',
93+
'vc',
94+
'vd',
95+
'vrd',
9696
])
9797

9898
SUFFIXES = SUFFIX_ACRONYMS | set([

0 commit comments

Comments
 (0)