From beb94a2c2b42ab9109bf155afb00ae31ec4c787b Mon Sep 17 00:00:00 2001 From: Linda Date: Thu, 4 Jul 2024 14:07:52 +0200 Subject: [PATCH] fixing adjective rule barriers --- tools/grammarcheckers/grammarchecker.cg3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/grammarcheckers/grammarchecker.cg3 b/tools/grammarcheckers/grammarchecker.cg3 index 7fe65e493..2c673b112 100644 --- a/tools/grammarcheckers/grammarchecker.cg3 +++ b/tools/grammarcheckers/grammarchecker.cg3 @@ -2334,7 +2334,7 @@ LIST CONGRUENCE-A-smn = "pyeri" (Der/Comp A) (Der/Superl A) (".*vâš"r) (".*lâ SET CONGRUENCE-A = CONGRUENCE-A-sma OR CONGRUENCE-A-smj OR CONGRUENCE-A-sme OR CONGRUENCE-A-smn ; ADD:xsyn-pred-attr (&msyn-pred-attr) TARGET A + Nom IF -(*1 N + CASE OR A + CASE BARRIER NOT-Attr - PrfPrc LINK NOT 0 Dem OR VFIN) +(*1 N + CASE OR A + CASE BARRIER NOT-Attr LINK NOT 0 Dem OR VFIN) (NEGATE 0 LINK *1 (N Acc) BARRIER NOT-NPMOD LINK *1 (TV Inf) BARRIER NOT-ADV-PCLE) (NEGATE 0 Attr OR (V Sg3) OR ONLY-ATTR-A OR OR CONGRUENCE-A-smj) (NEGATE 0 Sem/Hum + (Pl Nom) LINK *0 (V Pl3) OR (V Pl1) OR (V Pl2)) @@ -2398,16 +2398,16 @@ SET ATTR-ELA-A = ("<.*s>"r) + (Sg Ela) OR ("smidá" A Sg Ela) ; # liehket before -ADD:syn-attr-pred-sg (&msyn-attr-pred-sg) TARGET (A Attr) IF (*-1 BE + Sg1 OR BE + Sg2 OR BE + Sg3 BARRIER NOT-ADV) (NEGATE 0 (A Nom) OR OR ONLY-ATTR-A) (NEGATE *1 N + CASE OR (Cmp/SplitR) OR (A Nom) OR A + Sem/Hum BARRIER NOT-Attr-Abe - ATTR-ELA-A - (A Attr)) (NEGATE *1 CC OR COMMA BARRIER NOT-Attr - PrfPrc LINK 1 (A Attr) LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A - COMMA - CC) (NEGATE 0 ("ållo")) (NEGATE 1 (PrfPrc) LINK 1 N) ; +ADD:syn-attr-pred-sg (&msyn-attr-pred-sg) TARGET (A Attr) IF (*-1 BE + Sg1 OR BE + Sg2 OR BE + Sg3 BARRIER NOT-ADV) (NEGATE 0 (A Nom) OR OR ONLY-ATTR-A) (NEGATE *1 N + CASE OR (Cmp/SplitR) OR (A Nom) OR A + Sem/Hum BARRIER NOT-Attr-Abe - ATTR-ELA-A - (A Attr)) (NEGATE *1 CC OR COMMA BARRIER NOT-Attr LINK 1 (A Attr) LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A - COMMA - CC) (NEGATE 0 ("ållo")) (NEGATE 1 (PrfPrc) LINK 1 N) ; ## ássje l {gássjelis} munji #$ Ja suv muohto lij degu biejvve ja suv juolge degu dållåtjuolda, ja giedanis lij {unna} rabás girjjegoabrásj. -ADD:syn-attr-pred-pl (&msyn-attr-pred-pl) TARGET (A Attr) IF (*-1 BE + Du1 OR BE + Du2 OR BE + Du3 OR BE + Pl1 OR BE + Pl2 OR BE + Pl3 BARRIER NOT-ADV) (NEGATE 0 (A Nom) OR A + Sem/Hum OR OR ONLY-ATTR-A - ATTR-ELA-A) (NEGATE *1 N + CASE OR (Cmp/SplitR) OR (A Sg) + CASE OR A + Sem/Hum BARRIER NOT-Attr-Abe - ATTR-ELA-A - (A Attr)) (NEGATE *1 CC OR COMMA BARRIER NOT-Attr - PrfPrc - ATTR-ELA-A LINK 1 (A Attr) LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A - COMMA - CC) (NEGATE 1 (PrfPrc) LINK 1 N) (NEGATE -1 (Sg3 SUGGEST)) ; +ADD:syn-attr-pred-pl (&msyn-attr-pred-pl) TARGET (A Attr) IF (*-1 BE + Du1 OR BE + Du2 OR BE + Du3 OR BE + Pl1 OR BE + Pl2 OR BE + Pl3 BARRIER NOT-ADV) (NEGATE 0 (A Nom) OR A + Sem/Hum OR OR ONLY-ATTR-A - ATTR-ELA-A) (NEGATE *1 N + CASE OR (Cmp/SplitR) OR (A Sg) + CASE OR A + Sem/Hum BARRIER NOT-Attr-Abe - ATTR-ELA-A - (A Attr)) (NEGATE *1 CC OR COMMA BARRIER NOT-Attr - ATTR-ELA-A LINK 1 (A Attr) LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A - COMMA - CC) (NEGATE 1 (PrfPrc) LINK 1 N) (NEGATE -1 (Sg3 SUGGEST)) ; ## ássje li {gássjelis} munji #$ Dunji lip edna baháv dahkam. -ADD:syn-attr-pred-sg (&msyn-attr-pred-sg) TARGET (A Attr) IF (*-1 BE + Inf BARRIER NOT-ADV LINK -1 (V Ind Sg1) OR (V Ind Sg2) OR (V Ind Sg2)) (NEGATE 0 (A Nom) OR A + Sem/Hum OR OR ONLY-ATTR-A) (NEGATE 1 CC OR COMMA LINK 1 (A Attr) LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A - COMMA - CC) (NEGATE *1 CC OR COMMA BARRIER NOT-Attr - PrfPrc LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A)(NEGATE 1 N) ; +ADD:syn-attr-pred-sg (&msyn-attr-pred-sg) TARGET (A Attr) IF (*-1 BE + Inf BARRIER NOT-ADV LINK -1 (V Ind Sg1) OR (V Ind Sg2) OR (V Ind Sg2)) (NEGATE 0 (A Nom) OR A + Sem/Hum OR OR ONLY-ATTR-A) (NEGATE 1 CC OR COMMA LINK 1 (A Attr) LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A - COMMA - CC) (NEGATE *1 CC OR COMMA BARRIER NOT-Attr LINK *1 N BARRIER NOT-Attr-Abe - ATTR-ELA-A)(NEGATE 1 N) ; ## Dån viertti liehket {duosstelis} uddni. #$ Li {stuora} gielalasj ja kultuvralasj sieradusá sámij gaskan Nuorttarijkajn, ja inuihta duola degu viessu sihke smáves sebrudagájn Ruonáednamin ja Københámnan.