Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed the regular expressions based on Luca's feedback.

  • Loading branch information...
commit 332c56a5b38689b17103e5979541aa0bbf09a71d 1 parent f836cab
@adamdoupe adamdoupe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  chrisper
View
2  chrisper
@@ -232,7 +232,7 @@ class Paper(object):
"lustre": "luster", "modelled": "modeled", "revelled": "raveled", "shovelled": "shoveled", "snivelled": "sniveled",
"theatre": "theater", "towards": "toward", "travelling": "traveling", "yodelling": "yodeling"}
for british, american in british_spellings.iteritems():
- for m in re.finditer("(\s+|\()" + british + "(\s+|\.|,|\))", self.clean_fulltext):
+ for m in re.finditer("[^\w]+" + british + "[^\w]+", self.clean_fulltext):
print "Don't spell like a bugger", american, "not", self._format_re_match(m, self.clean_fulltext)
errors += 1
return errors
Please sign in to comment.
Something went wrong with that request. Please try again.