The following description is based on the rather conservative pronunciation of Portuguese in Porto Alegre, Rio Grande do Sul, Brazil. Because the orthography is even more conservative, the rules will roughly characterize the phonological changes that have occured in one dialect since the orthography fossilized. We will limit the input to lowercase words in this exercise. Because we have limited our input words to lowercase letters, the six special characters will appear only in surface strings, never at the lexical level. These zeros will not appear in the final output.
All lexical symbols map to themselves on the surface level by default.
Testing Portuguese Pronunciation Write a set of that performs the mappings indicated. Compile the rules using the read regex from utility in and test them using the apply down utility. Modify your rules and re-apply the input words until the grammar is working perfectly.