Returns the constraint that matches the given Word, or None.
(self, word)
| 936 | return self.words and self.words[-1].index+1 or None |
| 937 | |
| 938 | def constraint(self, word): |
| 939 | """ Returns the constraint that matches the given Word, or None. |
| 940 | """ |
| 941 | if word.index in self._map1: |
| 942 | return self._map1[word.index] |
| 943 | |
| 944 | def constraints(self, chunk): |
| 945 | """ Returns a list of constraints that match the given Chunk. |
no outgoing calls