o = {"MI":"I",
    "MIS":"WE",
    "YO":"YOU",
    "YOS":"YOU_GUYS",
    "TE-BO":"HE",
    "TE-BOS":"THEY",
    "TE-GI":"SHE",
    "TE-GIS":"THEY",
    "TE":"IT",
    "TE-CLOSE":"THIS",
    "TE-FAR":"THAT",
    "IS":"IS/AM/ARE",
    "ES":"DO/DOES",
    "NO":"NOT",
    "a":"ONE",
    }

O = {v: k for k, v in o.items()}

def P(sentence):
    words = sentence.split()
    return " ".join(o.get(w, f"[{w}]") for w in words)

def p(sentence):
    words = sentence.split()
    return " ".join(O.get(w, f"[{w}]") for w in words)
print(p("YOU DO/DOES NOT EAT a CAT"))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: