Commits

da...@david-office.Bubka  committed 7c8d5d8

add ll to list of apostrophe endings

  • Participants
  • Parent commits 6ca4072

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. """

File transforms.py

         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