def singular_form(resource_name: str) -> str:
    """Gets the singular form of the resource_name,
    that is, removing the s at the end of it"""
    if resource_name[-1] == "s":
        return resource_name[:-1]
    else:
        return resource_name