Circumfixes are a pair of affixes, usually a prefix and a suffix and in some instances in Iloko, an infix and suffix, that must co-occur. Hunspell has the capability of recognizing circumfixes. Simply assign a special flag, and when specifying rules, assign the circumfix flag to the rules of the prefix and assign both the flag of the prefix and the circumfix flag to the rules for the suffix. Simple, huh? Let’s take a look at an example: the location circumfix pag><an.
[*.aff file]
PFX P Y 1
; Circumfix flag. This flag will be used to mark affix as members of a circumfix
CIRCUMFIX X
PFX P 0 pag/X .SFX S Y 1
SFX S 0 an/PX .[*.dic file]
1
adal/S
“X” is used to designate circumfix pairs throughout the *.aff file. The prefix, pag, is assigned the flag “P” and its single rule has a “continuation” flag, the flag after the “/” following the form of the prefix. The flag of suffix of the pair is “S”. Its only rule is similarly mark, but it has the flag of the prefix. In the dictionary, only the suffix flag is used with the root adal “to learn”.
If we were to try this out on some “words”, we would see result similar to the following when using the specifications above.
pagadal [false]
adalan [false]
pagadalan [true]
Just using either the prefix or suffix alone results in invalid words. The only “correct” form is the third.
So, the above three are the main over-arching considerations that encountered while creating a Hunspell dictionary. And, as I’ve moved along and stepped back only to move forward again, I find further details that make the task challenging.
No comments:
Post a Comment