(
        self,
        *,
        speaker_name: Optional[str | Set[str]] = None,
        speaker_party: Optional[str | Set[str]] = None,
        chamber: Optional[str | Set[str]] = None,
        congress: Optional[int | Set[int]] = None,
        date_range: Optional[Tuple[Optional[str], Optional[str]]] = None,
        min_len: Optional[int] = None,
        limit: Optional[int] = None,
    )
Iterate over speeches in this dataset, optionally filtering by a variety
        of metadata and/or text length, and yield texts only,
        in chronological order.

        Args:
            speaker_name: Filter speeches by the speakers' name;
                see :attr:`CapitolWords.speaker_names`.
            speaker_party: Filter speeches by the speakers' party;
                see :attr:`CapitolWords.speaker_parties`.
            chamber: Filter speeches by the chamber in which they were given;
                see :attr:`CapitolWords.chambers`.
            congress: Filter speeches by the congress in which they were given;
                see :attr:`CapitolWords.congresses`.
            date_range: Filter speeches by the date on which they were given.
                Both start and end date must be specified, but a null value for either
                will be replaced by the min/max date available for the dataset.
            min_len: Filter texts by the length (# characters) of their text content.
            limit: Yield no more than ``limit`` texts that match all specified filters.

        Yields:
            Full text of next (by chronological order) speech in dataset
            passing all filter params.

        Raises:
            ValueError: If any filtering options are invalid.
Iterate over speeches in this dataset, optionally filtering by a variety
        of metadata and/or text length, and yield texts only,
        in chronological order.
Iterate over speeches in this dataset optionally filtering by a variety of metadata and / or text length and yield texts only in chronological order .
def texts(
        self,
        *,
        speaker_name: Optional[str | Set[str]] = None,
        speaker_party: Optional[str | Set[str]] = None,
        chamber: Optional[str | Set[str]] = None,
        congress: Optional[int | Set[int]] = None,
        date_range: Optional[Tuple[Optional[str], Optional[str]]] = None,
        min_len: Optional[int] = None,
        limit: Optional[int] = None,
    ) -> Iterable[str]:
        """
        Iterate over speeches in this dataset, optionally filtering by a variety
        of metadata and/or text length, and yield texts only,
        in chronological order.

        Args:
            speaker_name: Filter speeches by the speakers' name;
                see :attr:`CapitolWords.speaker_names`.
            speaker_party: Filter speeches by the speakers' party;
                see :attr:`CapitolWords.speaker_parties`.
            chamber: Filter speeches by the chamber in which they were given;
                see :attr:`CapitolWords.chambers`.
            congress: Filter speeches by the congress in which they were given;
                see :attr:`CapitolWords.congresses`.
            date_range: Filter speeches by the date on which they were given.
                Both start and end date must be specified, but a null value for either
                will be replaced by the min/max date available for the dataset.
            min_len: Filter texts by the length (# characters) of their text content.
            limit: Yield no more than ``limit`` texts that match all specified filters.

        Yields:
            Full text of next (by chronological order) speech in dataset
            passing all filter params.

        Raises:
            ValueError: If any filtering options are invalid.
        """
        filters = self._get_filters(
            speaker_name, speaker_party, chamber, congress, date_range, min_len
        )
        for record in itertools.islice(self._filtered_iter(filters), limit):
            yield record["text"]
def texts ( self , * , speaker_name : Optional [ str | Set [ str ] ] = None , speaker_party : Optional [ str | Set [ str ] ] = None , chamber : Optional [ str | Set [ str ] ] = None , congress : Optional [ int | Set [ int ] ] = None , date_range : Optional [ Tuple [ Optional [ str ] , Optional [ str ] ] ] = None , min_len : Optional [ int ] = None , limit : Optional [ int ] = None , ) -> Iterable [ str ] : filters = self . _get_filters ( speaker_name , speaker_party , chamber , congress , date_range , min_len ) for record in itertools . islice ( self . _filtered_iter ( filters ) , limit ) : yield record [ "text" ]