intficpy/parser.py
def checkComponentObjects(self):
        """
        Check if any of the identified objects have subcomponents that are better
        candidates as objects of the current verb.
        """
        dobj = self._checkComponentObject("dobj", self.command.dobj.target)
        iobj = self._checkComponentObject("iobj", self.command.iobj.target)

        if dobj and self.command.dobj and dobj != self.command.dobj.target:
            self.game.addTextToEvent(
                "turn", "(Assuming " + dobj.lowNameArticle(True) + ".)",
            )
            self.command.dobj.target = dobj

        if iobj and self.command.iobj and iobj != self.command.iobj.target:
            self.game.addTextToEvent(
                "turn", "(Assuming " + iobj.lowNameArticle(True) + ".)",
            )
            self.command.iobj.target = iobj

        Check if any of the identified objects have subcomponents that are better
        candidates as objects of the current verb.
        
Check if any of the identified objects have subcomponents that are better
candidates as objects of the current verb.
Check if any of the identified objects have subcomponents that are better candidates as objects of the current verb .
def checkComponentObjects(self):
        dobj = self._checkComponentObject("dobj", self.command.dobj.target)
        iobj = self._checkComponentObject("iobj", self.command.iobj.target)
        if dobj and self.command.dobj and dobj != self.command.dobj.target:
            self.game.addTextToEvent(
                "turn", "(Assuming " + dobj.lowNameArticle(True) + ".)",
            )
            self.command.dobj.target = dobj
        if iobj and self.command.iobj and iobj != self.command.iobj.target:
            self.game.addTextToEvent(
                "turn", "(Assuming " + iobj.lowNameArticle(True) + ".)",
            )
            self.command.iobj.target = iobj
def checkComponentObjects ( self ) : dobj = self . _checkComponentObject ( "dobj" , self . command . dobj . target ) iobj = self . _checkComponentObject ( "iobj" , self . command . iobj . target ) if dobj and self . command . dobj and dobj != self . command . dobj . target : self . game . addTextToEvent ( "turn" , "(Assuming " + dobj . lowNameArticle ( True ) + ".)" , ) self . command . dobj . target = dobj if iobj and self . command . iobj and iobj != self . command . iobj . target : self . game . addTextToEvent ( "turn" , "(Assuming " + iobj . lowNameArticle ( True ) + ".)" , ) self . command . iobj . target = iobj
Check if any of the identified objects have subcomponents that are better
candidates as objects of the current verb.
Check if any of the identified objects have subcomponents that are better candidates as objects of the current verb .
"""
        Check if any of the identified objects have subcomponents that are better
        candidates as objects of the current verb.
        """
self