|
35 | 35 |
|
36 | 36 | _exc[orth + "m"] = [
|
37 | 37 | {ORTH: orth, NORM: pron},
|
38 |
| - {ORTH: "m", "tenspect": 1, "number": 1}, |
| 38 | + {ORTH: "m"}, |
39 | 39 | ]
|
40 | 40 |
|
41 | 41 | _exc[orth + "'ma"] = [
|
|
139 | 139 |
|
140 | 140 | # W-words, relative pronouns, prepositions etc.
|
141 | 141 |
|
142 |
| -for word in [ |
143 |
| - "who", |
144 |
| - "what", |
145 |
| - "when", |
146 |
| - "where", |
147 |
| - "why", |
148 |
| - "how", |
149 |
| - "there", |
150 |
| - "that", |
151 |
| - "this", |
152 |
| - "these", |
153 |
| - "those", |
| 142 | +for word, morph in [ |
| 143 | + ("who", None), |
| 144 | + ("what", None), |
| 145 | + ("when", None), |
| 146 | + ("where", None), |
| 147 | + ("why", None), |
| 148 | + ("how", None), |
| 149 | + ("there", None), |
| 150 | + ("that", "Number=Sing|Person=3"), |
| 151 | + ("this", "Number=Sing|Person=3"), |
| 152 | + ("these", "Number=Plur|Person=3"), |
| 153 | + ("those", "Number=Plur|Person=3"), |
154 | 154 | ]:
|
155 | 155 | for orth in [word, word.title()]:
|
156 |
| - _exc[orth + "'s"] = [ |
157 |
| - {ORTH: orth, NORM: word}, |
158 |
| - {ORTH: "'s", NORM: "'s"}, |
159 |
| - ] |
| 156 | + if morph != "Number=Plur|Person=3": |
| 157 | + _exc[orth + "'s"] = [ |
| 158 | + {ORTH: orth, NORM: word}, |
| 159 | + {ORTH: "'s", NORM: "'s"}, |
| 160 | + ] |
160 | 161 |
|
161 |
| - _exc[orth + "s"] = [{ORTH: orth, NORM: word}, {ORTH: "s"}] |
| 162 | + _exc[orth + "s"] = [{ORTH: orth, NORM: word}, {ORTH: "s"}] |
162 | 163 |
|
163 | 164 | _exc[orth + "'ll"] = [
|
164 | 165 | {ORTH: orth, NORM: word},
|
|
182 | 183 | {ORTH: "ve", NORM: "have"},
|
183 | 184 | ]
|
184 | 185 |
|
185 |
| - _exc[orth + "'re"] = [ |
186 |
| - {ORTH: orth, NORM: word}, |
187 |
| - {ORTH: "'re", NORM: "are"}, |
188 |
| - ] |
| 186 | + if morph != "Number=Sing|Person=3": |
| 187 | + _exc[orth + "'re"] = [ |
| 188 | + {ORTH: orth, NORM: word}, |
| 189 | + {ORTH: "'re", NORM: "are"}, |
| 190 | + ] |
189 | 191 |
|
190 |
| - _exc[orth + "re"] = [ |
191 |
| - {ORTH: orth, NORM: word}, |
192 |
| - {ORTH: "re", NORM: "are"}, |
193 |
| - ] |
| 192 | + _exc[orth + "re"] = [ |
| 193 | + {ORTH: orth, NORM: word}, |
| 194 | + {ORTH: "re", NORM: "are"}, |
| 195 | + ] |
194 | 196 |
|
195 |
| - _exc[orth + "'ve"] = [ |
196 |
| - {ORTH: orth, NORM: word}, |
197 |
| - {ORTH: "'ve"}, |
198 |
| - ] |
| 197 | + _exc[orth + "'ve"] = [ |
| 198 | + {ORTH: orth, NORM: word}, |
| 199 | + {ORTH: "'ve"}, |
| 200 | + ] |
199 | 201 |
|
200 |
| - _exc[orth + "ve"] = [ |
201 |
| - {ORTH: orth}, |
202 |
| - {ORTH: "ve", NORM: "have"}, |
203 |
| - ] |
| 202 | + _exc[orth + "ve"] = [ |
| 203 | + {ORTH: orth}, |
| 204 | + {ORTH: "ve", NORM: "have"}, |
| 205 | + ] |
204 | 206 |
|
205 | 207 | _exc[orth + "'d"] = [
|
206 | 208 | {ORTH: orth, NORM: word},
|
|
0 commit comments