Like Pig Latin, Jerigonza is a very simple game:
To convert a Spanish
word into Jerigonza, add pV
after each vowel
whereV
is a copy of the vowel in question.
For example, the word "pero" is "peperopo" in Jerigonza.
There are a few complications to this simple general rule.
| % xfst -f jerigonza.scr | Launching xfst with the script. Printing progress messages. |
|
>> Defining 'Vowel' and 'Cons' 2 states, 12 arcs, 12 paths. 2 states, 22 arcs, 22 paths. >> Compiling the 'Jerigonza' transducer 20 states, 146 arcs, Circular. >> Reading a test file Opening file /mnt/linc/ftp/pub/cis639/public_html/assign/spanish-words.txt... Closing file /mnt/linc/ftp/pub/cis639/public_html/assign/spanish-words.txt... 61 states, 72 arcs, 13 paths. >> Applying ... 111 states, 122 arcs, 13 paths. >> Here are the original words ueste irgues que guardia guerra glosario águila automóvil audaz piurano situación liguero después buir >> Here are the Jerigonza words uepestepe ipirguepes quepe guapardiapa gueperrapa gloposapariopo ápaguipilapa apautopomópovipil apaudapaz piupurapanopo sipituapaciópon lipigueperopo depespuépes buipir bye. % |
|
echo >> Defining 'Vowel' and 'Cons' define Vowel [ a | e | i | o | u | á | é | í | ó | ú | ï | ü ] ; define Cons [ b | c | d | f | g | h | j | k | l | m | n | ñ | p | q | r | s | t | v | w | x | y | z ] ; |
Typing accented letters in Emacs is cumbersome if you don't have your own defintions for them. It takes four keys in Emacs to make á. You have to type C-x 8 ' a .
Because the accents on the vowels are not copied, the same inserted syllable, e.g. pe, may represent either e or é. Be careful not to let the copied vowel to be copied a second time. For instance, "sé" must translate to "sépe", not to "sépepe".
The treatment of a, e, o and their accented variants is straight-forward. The high vowels i and u are more difficult to handle correctly. The best way to proceed is to first ignore the special properties of i and u. Once you have a transducer for the general case, it is easier to see how to handle the high vowels.
In the final stage, you need to add constraints that prevent i and u from being copied in contexts where they get realized as glides and for contexts where u is not pronounced at all. When you get i right, there is not much more to be done for u.
The size of the Jerigonza transducer is about 16 states, 112 arcs.