Greeklish, a portmanteau of the words Greek and English, is a way of writing modern Greek using only ASCII characters. This informal way of writing was extensively used in older applications / web forums that did not support Unicode, and were not programmed to show Greek characters. Nowadays, its use is minimized due to the Unicode support of modern platforms, but there are still some users who opt to write in it.
Input / Output:
Your task in this challenge, should you choose to accept it, is to take as input a lowercase, non-punctuated sentence written in Greeklish and output it in the same format in non-accented modern Greek. To do this conversion you should use the table below. Note that the digraph characters take precedence over single characters during conversion. You are free to opt any acceptable string format that works best for you (e.g., a sentence, a list of words, etc.).
|ASCII Character(s)||Greek Character|
geia soy kosme -> γεια σου κοσμε epsaxna gia mia aggelia sth thleorash -> εψαχνα για μια αγγελια στη τηλεοραση kati 3erei sxetika me ayto -> κατι ξερει σχετικα με αυτο pswnisa ksylina spa8ia -> ψωνισα ξυλινα σπαθια ekeinh agorase 4aria kai 8ymari -> εκεινη αγορασε ψαρια και θυμαρι