

def check_inv_for_keyword(self, keyword):
    "Check all of the items in a character's inventory for a specific\n        keyword. Return the item that matches that keyword, else return None.\n        "
    keyword = keyword.strip().lower()
    for item in self.inventory:
        if (item in item.keywords):
            return item
    return None

dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/character.py Character.check_inv_for_keyword/VarMisuse@37/97 `keyword`->`item`