def rule_exception(self):
     rule = TrailingShortWordRule()
     # The whole line only contains short words
     rule.paragraph = u"The for,, a is ,on. at"
     return rule
 def rule(self):
     rule = TrailingShortWordRule()
     rule.paragraph =  u"This is a rule to, bla-bla."
     rule.allow_break = "111111000000001100110001000"
     return rule