Skip to content

Commit

Permalink
Tweak regular expression for determiner detecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Suchow authored and laraross committed Sep 27, 2015
1 parent 10d09e3 commit 35bf3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proselint/checks/mau_a_vs_an.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def starts_with_vowel_sound(word):
return None

errors = []
regex = re.compile("(^|\s+)(A|a|An|an)\s(\S*)\W")
regex = re.compile("(?:^|\W)(an?)\s+(\w+)", re.IGNORECASE)

# Find all occurences of the regex in the text.
for m in regex.finditer(text):
Expand Down

0 comments on commit 35bf3c7

Please sign in to comment.