function letterToWord(word) {
let newWord = ""
for (i in word) {
letter = word[i]
if (PRONOUNCED_LETTERS.hasOwnProperty(letter)) {
newWord += PRONOUNCED_LETTERS[letter];
if (i != word.length) {
newWord += " "
}
} else {
newWord += letter
}
}
return newWord.trim();
}
https://seen-arabic.github.io/Arabic-Services/letter-to-word/