-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgrammatical.rules
36 lines (29 loc) · 921 Bytes
/
grammatical.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) 2015 Manish Jethani
#
# Grammar and punctuation errors.
#
([a-z])-([a-z]) $1$2 # non-obvious => nonobvious
n't$ nt # don't => dont
've$ ve # should've shouldve
^I'm$ Im # I'm => Im
([^aeiou's])s$ $1 # books => book
's$ s # Jack's => Jacks
^([Ii])ts$ $1t's # its => it's
^([Oo])nes$ $1ne's # ones => one's
^([Yy])our$ $1ou're # your => you're
^([Yy])ou're$ $1our # you're => your
^([Hh])e's$ $1is # he's => his
^([Hh])is$ $1e's # his => he's
^([Ww])e're$ $1ere # we're => were
^([Ww])ere$ $1e're # were => we're
^([Tt])ere$ $1heir # there => their
^([Tt])eir$ $1here # their => there
^([Tt])ey're$ $1heir # they're => their
^([Tt])eir$ $1hey're # their => they're
^([Ll])et's$ $1ets # let's => lets
^([Ll])ets$ $1et's # lets => let's
^([Yy])ours$ $1our's # yours => your's
^([Hh])ers$ $1er's # hers => her's
^([Ou])urs$ $1ur's # ours => our's
^([Tt])heirs$ $1heir's # theirs => their's
# vim: ts=16