A_dict = {
    "🀇🀈🀉":"1ms","🀇🀇🀇":"1mc","🀇🀇":"1mto","🀇":"1m","🀇🀈":"1msp","🀇🀉":"1msk",
    "🀈🀉🀊":"2ms","🀈🀈🀈":"2mc","🀈🀈":"2mto","🀈":"2m","🀈🟉":"2msp","🀈🀊":"2msk",
    "🀉🀊🀋":"3ms","🀉🀉🀉":"3mc","🀉🀉":"3mto","🀉":"3m","🀉🀊":"3msp","🀉🀋":"3msk",
    "🀊🀋🀌":"4ms","🀊🀊🀊":"4mc","🀊🀊":"4mto","🀊":"4m","🀊🀋":"4msp","🀊🀌":"4msk",
    "🀋🀌🀍":"5ms","🀋🀋🀋":"5mc","🀋🀋":"5mto","🀋":"5m","🀋🀌":"5msp","🀋🀍":"5msk",
    "🀌🀍🀎":"6ms","🀌🀌🀌":"6mc","🀌🀌":"6mto","🀌":"6m","🀌🀍":"6msp","🀌🀎":"6msk",
    "🀍🀎🀏":"7ms","🀍🀍🀍":"3mc","🀍🀍":"7mto","🀍":"7m","🀍🀎":"7msp","🀍🀏":"7msk", 
    "🀎🀎🀎":"8mc","🀎":"8m","🀎🀎":"8mto","🀏🀏🀏":"9mc","🀏":"9m","🀏🀏":"9mto",
    "🀎🀏":"8msp"
}

B_dict = {v: k for k, v in A_dict.items()}

def C(code):
    parts = code.split()
    return ''.join(A_dict.get(p, '?') for p in parts)

def D(text):
    parts = text.split()
    return ' '.join(B_dict.get(p, '??') for p in parts)

print(D("4mc 2mc 3mc 2msk 3m"))
print(C("🀊🀊🀊 🀈🀈🀈 🀍🀍🀍 🀈🀊 🀉"))

Embed on website

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