def whitelist_terms(self, whitelist_terms: List[str], non_text: bool = False) -> Self:
        '''

        :param whitelist_terms: list[str], terms to whitelist
        :param non_text: bool, use non text featurs, default False
        :return: TermDocMatrix, new object with only terms in parameter
        '''
        return self.remove_terms(
            list(set(self.get_terms(use_metadata=non_text)) - set(whitelist_terms)),
            non_text=non_text)


        :param whitelist_terms: list[str], terms to whitelist
        :param non_text: bool, use non text featurs, default False
        :return: TermDocMatrix, new object with only terms in parameter
        
scattertext/TermDocMatrixWithoutCategories.py