commit f0f9b08303d7c62313e9dc1e84c62f93c678ff06 Author: koguzhan Date: Mon Jul 1 13:12:57 2019 +0200 rule for n attr diff --git a/apertium-kir.kir.rlx b/apertium-kir.kir.rlx index 8bd29e8..bb0262d 100644 --- a/apertium-kir.kir.rlx +++ b/apertium-kir.kir.rlx @@ -18,6 +18,8 @@ LIST Vaux = vaux ; LIST Verb = v ; LIST Num = num ; LIST Interj = ij ; +LIST Attr = attr ; +LIST Subst = subst ; LIST Vb-or-Aux = v vaux ; LIST Part = prc_plan prt_cond prt_perf prt_impf prt_vol prt_irre prt_ala ; LIST PartIrre = prt_irre ; @@ -47,6 +49,9 @@ SET Sing = (*) - (pl) ; SET Acc-Or-Nom = Acc | Nom ; +SET NOMINAL-HEAD = Noun | Ger | Subst ; +SET PRE-N = Det | Num | Attr | Adj | Gen | ("-") ; + SET Not-Part = (*) - Part ; SET Not-Prc = (*) - Prc ; SET Not-Sent = (*) - Sent ; @@ -159,3 +164,7 @@ REMOVE Vb-Imp IF SELECT Vb-Ifi-3 IF (0 N-Acc) (1C Sent) ; + + +REMOVE Attr IF (NOT 1 PRE-N) (NOT 1 NOMINAL-HEAD) (NOT 1/1 NOMINAL-HEAD) ; + ## Bu araba 11,5 milyar a