Closed ghost closed 7 years ago
In termcheck, we don't seem to bother to look whether we have enough tokens left in our sentence to apply all patterns that we have.
Before the following for, it would behoove us to check whether we have enough of the sentence left...
for
for patterngrouppattern in patterngrouppatterns: patternposition = wordposition + patterngrouppatternposition if patternposition > (totalwords - 1): trycontextpatterns = False break matchword = None [...]
No. We already do that @ line 188. Darn it.
In termcheck, we don't seem to bother to look whether we have enough tokens left in our sentence to apply all patterns that we have.
Before the following
for
, it would behoove us to check whether we have enough of the sentence left...