import random


def get_words_of_encouragement(ratio):
    """Return an English sentence summarising how good the ratio is"""

    if 0 <= ratio <= 0.2:
        return random.choice(
            [
                "there is nowhere to go but up",
                "that is not that good sorry",
                "clean your room",
                "there is always next month",
                "lol",
                "to be honest katsu curry is really nice so fair play",
                "could not be worse",
                "nah fam",
                "peak",
                "problematic",
            ]
        )
    elif 0.2 < ratio <= 0.4:
        return random.choice(
            [
                "it is an ok ratio i think but i think you can do even better next time but well done though",
                "cool",
                "not bad",
                "if you don't like having money then this is a pretty good ratio",
                "with more dedication i'm sure you can do better next time but well done",
                "hm",
                "ok",
                "i am feeling lukewarm about this score",
                "could be worse",
            ]
        )
    elif 0.4 < ratio <= 0.6:
        return random.choice(
            [
                "it is a good ratio well done",
                "not bad at all",
                "it is a nice one",
                "this is very respectable congratulations",
                "you are good",
                "yes",
                "merely hench",
            ]
        )
    elif 0.6 < ratio <= 0.8:
        return random.choice(
            [
                "that really is great",
                "gawn yersel",
                "that is a fantastic ratio, enjoy your money",
                "this is how you do it everyone",
                "WOAH!!! good one",
                "a picture of excellence",
                "perfect 5/7",
            ]
        )
    elif 0.8 < ratio <= 1:
        return random.choice(
            [
                "a tremendous display of dedication to the art of preparation",
                "a true hero",
                "wow that is an inspiring ratio",
                "well well well !!! look at what we have here, that is really incredible. well done",
                "i never thought i would see this in my lifetime wow",
                "now you are just showing off",
            ]
        )
    else:
        raise ValueError(f"Unhandled ratio {ratio}")