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

        Args:
            author: Filter texts by the authors' name. For multiple values (Set[str]),
                ANY rather than ALL of the authors must be found among a given works's authors.
            date_range: Filter texts by the date on which it was published;
                both start and end date must be specified, but a null value for either
                will be replaced by the min/max date available in 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:
            Text of the next work in dataset passing all filters.

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

        Args:
            author: Filter texts by the authors' name. For multiple values (Set[str]),
                ANY rather than ALL of the authors must be found among a given works's authors.
            date_range: Filter texts by the date on which it was published;
                both start and end date must be specified, but a null value for either
                will be replaced by the min/max date available in 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:
            Text of the next work in dataset passing all filters.

        Raises:
            ValueError: If any filtering options are invalid.
        """
        filters = self._get_filters(author, date_range, min_len)
        for record in itertools.islice(self._filtered_iter(filters), limit):
            yield record["text"]
def texts ( self , * , author : Optional [ str | Set [ str ] ] = 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 ( author , date_range , min_len ) for record in itertools . islice ( self . _filtered_iter ( filters ) , limit ) : yield record [ "text" ]