import polars as pl


def fetch_clinc():
    """
    Loads the clinc conversational intents data.

    Usage:

    ```python
    from simsity.datasets import fetch_clinc

    fetch_clinc()
    ```
    """
    return pl.read_csv(
        "https://raw.githubusercontent.com/koaning/simsity/main/tests/data/clinc-data.csv"
    )


def fetch_voters():
    """
    Loads the voters dataset.

    Usage:

    ```python
    from simsity.datasets import fetch_voters

    fetch_voters()
    ```
    """
    return pl.read_csv(
        "https://raw.githubusercontent.com/koaning/simsity/main/tests/data/votes.csv"
    )


def fetch_recipes():
    """
    Loads a dataset with recipe names.

    It was originally found here:
    https://huggingface.co/datasets/m3hrdadfi/recipe_nlg_lite

    Usage:

    ```python
    from simsity.datasets import fetch_recipes

    fetch_recipes()['text']
    ```
    """
    return pl.read_csv(
        "https://raw.githubusercontent.com/koaning/simsity/main/tests/data/recipes.csv"
    )
