From: Nuralanur@... Date: 2006-04-12T22:48:30+09:00 Subject: Re: Substituting from another file -------------------------------1144849695 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I had resolved a similar problem some time ago by reading what corresponds to your dictionary data into a hash (i.e., {'PANELED' =>'P AE1 N AH0 L D', 'PANELING'=>"P AE1 N AH0 L IH0 NG"} ). I would then replace the keys by the values in the target text using gsub. Cave: actually, in my application, I also had to sort my keys for length, in case a word would be longer than another, but pronounced identically ... you can do that by iterating over an array which you get from my_hash.sort. Best regards, Axel -------------------------------1144849695--