The documentation says: Rule option SUB:N tells a rule which sub-reading it should operate on and which it should test as target. (..) Positive numbers refer to sub-readings starting from the primary and going deeper, while negative numbers start from the last sub-reading and go towards the primary. (...)
Context option /N tests the N'th sub-reading of the currently active reading, where N follows the same rules as for SUB:N above. The /N must be last in the context position. If N is * then the test will search the main reading and all sub-readings. ---- Thia looks great. But I am not able to make it work. Here is what I have: "kahtakymmentä minuuttia" 'twenty minutes' (lines 1-7 below). I want to say that "minuuttia" is "Sg Par" BECAUSE there is a numeral in the singular to its left. Had it been "kahta minuuttia" it would have been straightforward: SELECT Sg + Par IF (-1 Num + Sg);. Now, with the subreading 1. "<kahtakymmentä>" 2. "kymmentä" <W:0.0> 3. "kaksi" Num Sg Par <W:0.0> 4. : 5. "<minuuttia>" 6. "minuutti" N <fit> Pl Par <W:0.0> @<OBJ MAP:1512 SUBSTITUTE:2000 7. "minuutti" N <fit> Sg Par <W:0.0> @<OBJ MAP:1512 SUBSTITUTE:2000 I try different versions REMOVE:SgPar Pl + Par IF (-1 Num + Sg)(0 Sg + Par); # (a) REMOVE:SgParSub Pl + Par IF (-1/1 Num + Sg)(0 Sg + Par); # (b) but no. (a) works for "kahta minuuttai" (without subreading) but (b) is ignored by the input. I have tried both -1/*, -1/-1. Admittedly, using subreadings when referring to *context* is not covered in the documentation (not in the chapter Rule Option SUB:N anyway), but I thought exchanging "0/" with any position number seemed a natural extension. And we do want to refer to subreadings also in the context. So: What do I miss? Trond. -- You received this message because you are subscribed to the Google Groups "Constraint Grammar" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/constraint-grammar/803aceba-9581-40b6-81de-abb20a829526n%40googlegroups.com.
