def convert_name(cs):
    """Convert the name of prototype to formal name
    """
    def convert_single(_cs):
        if isinstance(_cs, str):  # convert string name
            _cs = cs.lower()
            if _cs[0] == "z":
                return "zincblende"
            elif _cs[0] == "w":
                return "wurtzite"
            elif _cs[0] in ("n", "r"):
                return "rocksalt"
            elif _cs[0] == "c":
                return "cesiumchloride"
            elif _cs[0] == "d":
                return "diamond"
            elif _cs[0] == "p":
                return "perovskite"
            else:
                return "other"
        else:
            return ""

    if isinstance(cs, str):
        return ([convert_single(cs)])
    elif isinstance(cs, list):
        return tuple([convert_single(c) for c in cs])