File: capitalization.py

package info (click to toggle)
python-nameparser 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: python: 4,221; makefile: 7; sh: 1
file content (13 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

CAPITALIZATION_EXCEPTIONS = (
    ('ii', 'II'),
    ('iii', 'III'),
    ('iv', 'IV'),
    ('md', 'M.D.'),
    ('phd', 'Ph.D.'),
)
"""
Any pieces that are not capitalized by capitalizing the first letter.
"""