From 7815ea4b3eedad3944871019241ff4b63cc2e673 Mon Sep 17 00:00:00 2001 From: aarne Date: Sun, 24 Aug 2014 14:28:48 +0000 Subject: [PATCH] made the "how old" construction in Chinese more efficient by moving variants to the top level; the resulting rule is the same. This kind of inefficiencies are best found if you compile with the -v option and check for constructors creating unexpectedly many PGF rules. --- src/chinese/ConstructionChi.gf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chinese/ConstructionChi.gf b/src/chinese/ConstructionChi.gf index 07bda5a39..4c2c5e7ba 100644 --- a/src/chinese/ConstructionChi.gf +++ b/src/chinese/ConstructionChi.gf @@ -14,7 +14,7 @@ lin married_Cl x y = mkCl (lin NP x) L.married_A2 (lin NP y) ; what_name_QCl x = mkQCl whatSg_IP (mkClSlash (lin NP x) (mkV2 (mkV "叫"))) ; - how_old_QCl x = {s = \\_,p,a => x.s ++ (R.word "几岁" | R.word "多大")} ; ---- + how_old_QCl x = {s = \\_,p,a => x.s ++ R.word "几岁"} | {s = \\_,p,a => x.s ++ R.word "多大"} ; ---- ---- how_far_QCl x = mkQCl (E.IAdvAdv (ss "far")) (lin NP x) ; -- some more things