Commits

Anonymous committed 7c8d5d8

add ll to list of apostrophe endings

Comments (0)

Files changed (2)

           """,
         re.U | re.X)
 
-    _contraction_endings = [u't', u's', u'd']
+    # TODO: names containing apostrophes are not recognized here. Note
+    # some names may contain more than one apostrophe, e.g. Ng'ang'a.
+    _contraction_endings = [u't', u's', u'd', u'll']
 
     def __init__(self):
         """Set rule priority and name. """
         Transform.__init__(self, rule, tokens, **kwargs)
 
     def apply(self):
-        log_string = u'>RegexTransform {}'.format(self.rule.tokens)
-        logging.debug(log_string)
+        #log_string = u'>RegexTransform {}'.format(self.rule.tokens)
+        #logging.debug(log_string)
         for token in self.tokens_to_transform:
             for re_pair in self.rule.regex_pairs:
                 token.str = re.sub(re_pair[0], re_pair[1], token.str)
-        logging.debug(u'<RegexTransform %s', token_strings(self.rule.tokens))
+        #logging.debug(u'<RegexTransform %s', token_strings(self.rule.tokens))
         return self.rule.tokens
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.