Menu

#23 specific affixed form in compounds

open
nobody
None
5
2008-12-20
2008-12-20
No

Can I define a compound rule with some specific (not all) affixed forms? Like this:

$ cat compound-sfx.aff
COMPOUNDMIN 1
COMPOUNDRULE 1
COMPOUNDRULE XY

SFX S Y 3
SFX S 0 eo/X
SFX S 0 da
SFX S 0 go
$ cat compound-sfx.dic
2
ji/SY
mid/S
$ hunspell -d compound-sfx
mideo jida
+ mid
+ ji

mideojida
& mideojida 4 0: mideo jida, midda, jida, mid

$

I need this for Korean auxiliary verbs/adjectives written without spaces. Those auxiliary verbs/adjectives ("Y" flag in this case) can be written after the main verb/adjective's specific forms ("-eo" in this case) with a space ("mideo jida") or sometimes without a space ("mideojida").

Or is there other idea to implement this? There are around 100 such auxiliary verbs/adjectives so it's difficult to have all those combinations in the dictionary.

Discussion