intficpy/parser.py
def _analyzeSyntax(self, verb_form, tag):
        """
        Parse verb form (list of strings) to find the words directly preceding and
        following object tags, and pass these to self.getObjWords find the objects in the
        player's command
        Takes arguments:
        - verb_form, the assumed syntax of the command (list of strings),
        - tag (string, "<dobj>" or "<iobj>")
        Returns None or a list of strings
        """
        # get words before and after
        if tag in verb_form:
            obj_i = verb_form.index(tag)

        else:
            return None

        before = verb_form[obj_i - 1]
        if obj_i + 1 < len(verb_form):
            after = verb_form[obj_i + 1]
        else:
            after = None
        return self.getObjWords(self.game.app, before, after)

        Parse verb form (list of strings) to find the words directly preceding and
        following object tags, and pass these to self.getObjWords find the objects in the
        player's command
        Takes arguments:
        - verb_form, the assumed syntax of the command (list of strings),
        - tag (string, "<dobj>" or "<iobj>")
        Returns None or a list of strings
        
Parse verb form (list of strings) to find the words directly preceding and
following object tags, and pass these to self.getObjWords find the objects in the
player's command
Takes arguments:
verb_form, the assumed syntax of the command (list of strings),
tag (string, "" or "")
Returns None or a list of strings
Parse verb form ( list of strings ) to find the words directly preceding and following object tags and pass these to self . getObjWords find the objects in the player ' s command Takes arguments : verb_form the assumed syntax of the command ( list of strings ) tag ( string " " or " " ) Returns None or a list of strings
def _analyzeSyntax(self, verb_form, tag):
        if tag in verb_form:
            obj_i = verb_form.index(tag)
        else:
            return None
        before = verb_form[obj_i - 1]
        if obj_i + 1 < len(verb_form):
            after = verb_form[obj_i + 1]
        else:
            after = None
        return self.getObjWords(self.game.app, before, after)
def _analyzeSyntax ( self , verb_form , tag ) : if tag in verb_form : obj_i = verb_form . index ( tag ) else : return None before = verb_form [ obj_i - 1 ] if obj_i + 1 < len ( verb_form ) : after = verb_form [ obj_i + 1 ] else : after = None return self . getObjWords ( self . game . app , before , after )
Parse verb form (list of strings) to find the words directly preceding and
following object tags, and pass these to self.getObjWords find the objects in the
player's command
Takes arguments:
 verb_form, the assumed syntax of the command (list of strings),
 tag (string, "<dobj>" or "<iobj>")
Returns None or a list of strings
Parse verb form ( list of strings ) to find the words directly preceding and following object tags and pass these to self . getObjWords find the objects in the player ' s command Takes arguments : verb_form the assumed syntax of the command ( list of strings ) tag ( string " <dobj > " or " <iobj > " ) Returns None or a list of strings
"""
        Parse verb form (list of strings) to find the words directly preceding and
        following object tags, and pass these to self.getObjWords find the objects in the
        player's command
        Takes arguments:
        - verb_form, the assumed syntax of the command (list of strings),
        - tag (string, "<dobj>" or "<iobj>")
        Returns None or a list of strings
        """ # get words before and after
self
verb_form
tag