File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1515__version__ = '0.9.0'
1616
1717SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?'
18- PUNCT = r"""!"#$%&'‘()*+,\-./:;?@[\\\]_`{|}~"""
18+ PUNCT = r"""!"#$%&'‘()*+,\-–‒—― ./:;?@[\\\]_`{|}~"""
1919
2020SMALL_WORDS = re .compile (r'^(%s)$' % SMALL , re .I )
2121INLINE_PERIOD = re .compile (r'[a-z][.][a-z]' , re .I )
2222UC_ELSEWHERE = re .compile (r'[%s]*?[a-zA-Z]+[A-Z]+?' % PUNCT )
2323CAPFIRST = re .compile (r"^[%s]*?([A-Za-z])" % PUNCT )
2424SMALL_FIRST = re .compile (r'^([%s]*)(%s)\b' % (PUNCT , SMALL ), re .I )
2525SMALL_LAST = re .compile (r'\b(%s)[%s]?$' % (SMALL , PUNCT ), re .I )
26- SUBPHRASE = re .compile (r'([:.;?!\-\— ][ ])(%s)' % SMALL )
26+ SUBPHRASE = re .compile (r'([:.;?!\-–‒—― ][ ])(%s)' % SMALL )
2727APOS_SECOND = re .compile (r"^[dol]{1}['‘]{1}[a-z]+(?:['s]{2})?$" , re .I )
2828ALL_CAPS = re .compile (r'^[A-Z\s\d%s]+$' % PUNCT )
2929UC_INITIALS = re .compile (r"^(?:[A-Z]{1}\.{1}|[A-Z]{1}\.{1}[A-Z]{1})+$" )
Original file line number Diff line number Diff line change 112112 "Snakes on a Plane — The TV Edit — The Famous Line" ,
113113 "Snakes on a Plane — The TV Edit — The Famous Line"
114114 ),
115+ (
116+ "EPISODE 7 — THE FORCE AWAKENS" ,
117+ "Episode 7 — The Force Awakens"
118+ ),
119+ (
120+ "episode 7 – The force awakens" ,
121+ "Episode 7 – The Force Awakens"
122+ ),
115123 (
116124 '"Nothing to Be Afraid of?"' ,
117125 '"Nothing to Be Afraid Of?"'
You can’t perform that action at this time.
0 commit comments