def normalize(self):
        if not self.words:
            return NullQuery
        if len(self.words) == 1:
            return Term(self.fieldname, self.words[0])
            
        return self.__class__(self.fieldname, [w for w in self.words if w is not None],
                              slop=self.slop, boost=self.boost)
dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py/Phrase.normalize/original