def checkWords(self, agent):
        for w in self.skip_if_found:
            if w in agent:
                return False
        for w in self.look_for:
            if not w in agent:
                return False
        return True

    # This works only for the first element of look_for
    # If you want a different behaviour, you have to
    # override this method
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/user_agent_parser.py/DetectorBase.checkWords/original