A 2016-01-08 18:03, [email protected] escrigué:
> Hi again.
> I'd really appreciate some pointers here (prefixes and circumfixes) to
> get me started - if someone can explain even the Turkish example that
> avoids flags it would help.
> Otherwise, coming from hunspell I'm fine with experimenting and
> reading the general documentation.
> Cheers
> Paul
Sorry for not getting back about this sooner...
ameqran (large,great) masc., construct state (c.s.) umeqran: pl.
imeqranen c.s. yimeqranen
tameqrant fem., c.s. tmeqrant: pl. timeqranin c.s. tmeqranin
so the "stem" is -meqran-, and we can break down the inflection like
this:
a - meqran - 0 <adj><m><sg><nom>
u - meqran - 0 <adj><m><sg><con>
i - meqran - en <adj><m><pl><nom>
yi - meqran - en <adj><m><pl><con>
ta - meqran - t <adj><f><sg><nom>
t - meqran - t <adj><f><sg><con>
ti - meqran - in <adj><f><pl><nom>
t - meqran - in <adj><f><pl><con>
So, in lexc, something like:
LEXICON PREF-ADJ
a[+m][+sg][+nom]:a STEMS-ADJ ;
a[+m][+sg][+con]:u STEMS-ADJ ;
a[+m][+pl][+nom]:i STEMS-ADJ ;
LEXICON STEMS-ADJ
meqran:meqran SUFF-ADJ ;
LEXICON SUFF-ADJ
<adj><m><sg><nom>[+m][+sg][+nom]: # ;
<adj><m><sg><con>[+m][+sg][+con]: # ;
<adj><m><sg><nom>[+m][+pl][+nom]:en # ;
Then a twol rule something like:
"Remove"
[+sg]:0 /<= _ ;
except
(:*) [+sg]:0 ;
"Remove"
[+pl]:0 /<= _ ;
except
(:*) [+pl]:0 ;
So, e.g. remove all paths where you have only a single [+sg] or single
[+pl].
I haven't tested this, but it should give you info enough on the
direction. If you try it out (check out code in apertium-kir) and if you
can't get it to work, then drop by on IRC or ask us here.
Fran
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff