I want to write a computer program and draw flowcharts that will "Anglicize" the pronunciation of Spanish text of select consonants for English speakers learning Spanish to pronounce the words.
For most of the letters, the pronunciation is same.
For others letters, the rules are quite consistent.
But in some cases, there is more than one pronunciation (c, j, l, s, x, and z).
Here is my list:
c (before "e" or "i") = ? (th or s)
g (before "e" or "i") = h
h = [silent - nothing]
j = h
j (before "e" or "i") = ? (dh or l)
l = ? (dh or l)
ll = y
r (beginning of a word) = rr
s = ? (th or s)
v = b
x = ? (kth or ks)
x (some proper names) = h
z (usually only before "a", "o", or "u") = ? (th or s)
z (usually only before "a", "o", or "u", after a voiced consonant) = ? (dh or l)
What rules can I build into the program to find out where "c" is to be pronounced as "th" and where as "s"?
Likewise, what rules can I build into the program to find out where "s" is to be pronounced as "th" and where as "s"?