Thread:User talk:Kephir/Help with pronunciation modules/reply

"к" is the third letter from the start. The lua line takes successive pairs of characters and substitutes them according to the mapping; here, they are "аж", "ак", and "ьа". Since "кь" is on an odd position, it is not matched. I vaguely remember some other module being bitten by the same problem before.

My solution cheats a bit; it just restricts the pattern to pairs which start with consonants that have entries in the table. If you ever need to process overlapping pairs, or ones with some other consonant letters, it will no longer work.