From 42769445cc3f5ca1eac0677f31c2159fc8023b20 Mon Sep 17 00:00:00 2001 From: ilm024 Date: Fri, 5 Jan 2024 11:39:26 +0100 Subject: [PATCH] fix warnings --- tools/grammarcheckers/grammarchecker.cg3 | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tools/grammarcheckers/grammarchecker.cg3 b/tools/grammarcheckers/grammarchecker.cg3 index aff34aae7..323599834 100644 --- a/tools/grammarcheckers/grammarchecker.cg3 +++ b/tools/grammarcheckers/grammarchecker.cg3 @@ -539,10 +539,6 @@ SET Sem/Hum-prop = Sem/Sur OR Sem/Mal OR Sem/Fem ; SET Sem/Abstract = Sem/Act OR Sem/Amount OR Sem/Body-abstr OR Sem/Domain OR Sem/Edu OR Sem/Prod-cogn OR Sem/Perc-emo OR Sem/Prod-audio OR Sem/Event OR Sem/Feat OR Sem/Feat-phys OR Der/NomAct OR Sem/Lang OR Sem/Money OR Sem/State OR Sem/State-sick OR Sem/Semcon OR Sem/Txt OR Sem/Time OR Sem/Dummytag; - -LIST HUMAN = Sem/Fem Sem/Mal Sem/Sur ; #!! HUMAN - -SET HAB-ACTOR = HUMAN ; # Goal: make this like the sme one. #!! HAB-ACTOR SET HAB-ACTOR-NOT-HUMAN = Sem/Org ; # make this like the sme one #!! HAB-ACTOR-NOT-HUMAN @@ -1458,8 +1454,6 @@ SET NOT-N-A = WORD - N - A ; SET NOT-NP = Inf OR Pcle OR Interj OR CS ; -SET NUM = Num ; - SET NOT-NUM = WORD - Num ; SET NOT-CC = WORD - CC ; @@ -1669,8 +1663,6 @@ LIST &syn-to-sentence-init-copula = &syn-to-sentence-init-copula ; SET &real = &real-ActioGen-PrtPl1 OR &real-PrsPl3-PrtSg3 OR &real-NegSg2-NegSg3 OR &real-PrtSg2-PrtSg3 OR &real-NegSg3-NegSg2 ; -LIST &DELETE = &DELETE ; - SECTION # Speller suggestions rule – add &SUGGESTWF to any spelling suggestion @@ -2015,7 +2007,7 @@ COPY:lex-oahpasmuvvat-oahpastuvvat ("oahpástuvvat" &SUGGEST) EXCEPT ("oahpásmu # com to ill when oahpásmuvvat # ------------------------------ -ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl Ine) OR (Pl Gen) IF (*0 ("oahpásmuvvat") BARRIER NOT-NPMODADV LINK NEGATE 1 (Pron Dem) LINK 1 (N Com) ) (NEGATE (*0 &lex-oahpasmuvvat-oahpastuvvat))(NEGATE 0 (Sg Ill)) (NEGATE 0 (Pl Gen) LINK 1 Ill) ; +ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl Ine) OR (Pl Gen) IF (*0 ("oahpásmuvvat") BARRIER NOT-NPMODADV LINK NEGATE 1 (Pron Dem) LINK 1 (N Com) ) (NEGATE *0 &lex-oahpasmuvvat-oahpastuvvat)(NEGATE 0 (Sg Ill)) (NEGATE 0 (Pl Gen) LINK 1 Ill) ; ## Ja de oahpástuvviv avta prográmmaj. ## Dá bále bessin oahppe vehi oahpásmuvvat {doarromusiejajn} Narvijkan @@ -2031,18 +2023,18 @@ ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl I #$ Dákkir juohkusa bierriji vihpat muhtem ájge vaj mánná nubbe nuppijn oahpástuvvi. #$ Oahppe galggi oahpásmuvvat girjálasjvuoda ja subtsastimdábij valjesvuohtaj Sámen. -ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl Ine) OR (Pl Gen) IF (*-1 (Pron Pers Nom) BARRIER NOT-NPMODADV LINK -1 ("oahpásmuvvat")) (NEGATE (*0 &lex-oahpasmuvvat-oahpastuvvat)) ; +ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl Ine) OR (Pl Gen) IF (*-1 (Pron Pers Nom) BARRIER NOT-NPMODADV LINK -1 ("oahpásmuvvat")) (NEGATE *0 &lex-oahpasmuvvat-oahpastuvvat) ; ## valla oahpástuvvin (måj bájkijn} gå de dåhku båhtin. ## Valla oahpásmuvájma måj buorre prográmmajn # demonstartive + com to ill when oahpásmuvvat -ADD:msyn-proncom-ill-oahpasmuvvat (&msyn-proncom-ill-oahpasmuvvat) TARGET (Pron Dem Com) IF (*0 ("oahpásmuvvat") BARRIER NOT-NPMODADV) (*1 (N Com) BARRIER NOT-NPMOD)(NEGATE (*0 &lex-oahpasmuvvat-oahpastuvvat)) ; +ADD:msyn-proncom-ill-oahpasmuvvat (&msyn-proncom-ill-oahpasmuvvat) TARGET (Pron Dem Com) IF (*0 ("oahpásmuvvat") BARRIER NOT-NPMODADV) (*1 (N Com) BARRIER NOT-NPMOD)(NEGATE *0 &lex-oahpasmuvvat-oahpastuvvat) ; COPY:msyn-proncom-ill-oahpasmuvvat (Ill Attr &SUGGEST) EXCEPT (Com &msyn-proncom-ill-oahpasmuvvat) TARGET (&msyn-proncom-ill-oahpasmuvvat) ; -ADD:msyn-proncom-ill-oahpasmuvvat2 (&msyn-proncom-ill-oahpasmuvvat2) TARGET (N Com) IF (-1 (Pron Dem Com) + (&msyn-proncom-ill-oahpasmuvvat))(NEGATE (*0 &lex-oahpasmuvvat-oahpastuvvat)) ; +ADD:msyn-proncom-ill-oahpasmuvvat2 (&msyn-proncom-ill-oahpasmuvvat2) TARGET (N Com) IF (-1 (Pron Dem Com) + (&msyn-proncom-ill-oahpasmuvvat))(NEGATE *0 &lex-oahpasmuvvat-oahpastuvvat) ; COPY:msyn-proncom-ill-oahpasmuvvat2 (Ill &SUGGEST) EXCEPT (Com &msyn-proncom-ill-oahpasmuvvat2) TARGET (&msyn-proncom-ill-oahpasmuvvat2) ; @@ -2053,7 +2045,7 @@ COPY:msyn-proncom-ill-oahpasmuvvat2 (Ill &SUGGEST) EXCEPT (Com &msyn-proncom-ill # com and com to ill when oahpásmuvvat # ------------------------------ -ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl Ine) OR (Pl Gen) IF (*-1 CC OR COMMA BARRIER NOT-NPMOD-NOMPL LINK *-1 (&msyn-com-ill-oahpasmuvvat) OR (&msyn-proncom-ill-oahpasmuvvat) OR (&msyn-proncom-ill-oahpasmuvvat2) BARRIER (*) - (Sem/Plc Sg Ine)) (NEGATE (*0 &lex-oahpasmuvvat-oahpastuvvat)) ; +ADD:msyn-com-ill-oahpasmuvvat (&msyn-com-ill-oahpasmuvvat) TARGET (Com) OR (Pl Ine) OR (Pl Gen) IF (*-1 CC OR COMMA BARRIER NOT-NPMOD-NOMPL LINK *-1 (&msyn-com-ill-oahpasmuvvat) OR (&msyn-proncom-ill-oahpasmuvvat) OR (&msyn-proncom-ill-oahpasmuvvat2) BARRIER (*) - (Sem/Plc Sg Ine)) (NEGATE *0 &lex-oahpasmuvvat-oahpastuvvat) ; ## Dá bále bessin oahppe vehi oahpásmuvvat doarromusiejajn Narvijkan ja sáme ásadusáj Jåhkåmåhken åvdås vádtsájin ## Oadtjot oahppijt oahpásmuvátjit sáme girjálasjvuodajn ja girjálasjvuoda {histåvråjn}. DNW LINDA, "histåvråjn" ij sjatta illatijvva. Ihkap gå NOT-NPMOD ij dádjada "girjálasjvuoda" ## ja bessi oahpásmuvvat sáme kultuvrajn, {histåvråjn ja sebrudakiellemijn.} @@ -2352,7 +2344,7 @@ COPY:msyn-mij-gut ("guhti" &SUGGEST) EXCEPT ("mij" &msyn-mij-gut) TARGET (&msyn- # relative use gut>mij # ---------------------- -ADD:xmsyn-gut-mij (&msyn-gut-mij) TARGET ("guhti") IF (-1 N LINK NOT 0 Sem/AnimateNotOrg LINK NEGATE -1 Sem/Hum + Gen) (NEGATE -1 ("avtak") OR ("akta" Foc/Pos-k) OR (Pron Pers) OR (Pron Indef) + Sem/Hum OR Coll) (NEGATE *-1 (N Nom) + Sem/Hum OR (Dem Nom) BARRIER (*) - (N Ine) - (Pron Ine) LINK *-1 ("liehket" Ind Sg3) OR ("liehket" Ind Sg3) BARRIER NOT-NPMOD LINK -1 ("guhti")) (NEGATE -1 (N Ine) LINK (-1 (N Ill) OR (Pron Ill))) ; +ADD:xmsyn-gut-mij (&msyn-gut-mij) TARGET ("guhti") IF (-1 N LINK NOT 0 Sem/AnimateNotOrg LINK NEGATE -1 Sem/Hum + Gen) (NEGATE -1 ("avtak") OR ("akta" Foc/Pos-k) OR (Pron Pers) OR (Pron Indef) + Sem/Hum OR Coll) (NEGATE *-1 (N Nom) + Sem/Hum OR (Dem Nom) BARRIER (*) - (N Ine) - (Pron Ine) LINK *-1 ("liehket" Ind Sg3) OR ("liehket" Ind Sg3) BARRIER NOT-NPMOD LINK -1 ("guhti")) (NEGATE -1 (N Ine) LINK -1 (N Ill) OR (Pron Ill)) ; #$ Gut la dån? #$ Ulmusj lagábut oahpástuvvá ja diehtá gut juohkkahasj la, javllá sån." @@ -3085,7 +3077,7 @@ COPY:syn-number_congruence-subj-verb (Pl1 &SUGGEST) EXCEPT Sg1 OR Sg2 OR Sg3 OR COPY:syn-number_congruence-subj-verb (Pl1 &SUGGEST) EXCEPT (Sg1 &syn-number_congruence-subj-verb) OR (Sg2 &syn-number_congruence-subj-verb) OR (Sg3 &syn-number_congruence-subj-verb) OR (Du1 &syn-number_congruence-subj-verb) OR (Du2 &syn-number_congruence-subj-verb) OR (Du3 &syn-number_congruence-subj-verb) OR (Pl2 &syn-number_congruence-subj-verb) OR (Pl3 &syn-number_congruence-subj-verb) TARGET (V Neg &syn-number_congruence-subj-verb) IF (*-1 (Pron Sem/Hum Pers Pl1 Nom) BARRIER NOT-ADV-PCLE - @ADVL> - ("guhti" Nom) LINK NOT 0 @COMP-CS<)(NEGATE 0 Pl1 OR &real OR Adv)(NEGATE *-1 (V Pl1) BARRIER NOT-ADV-PCLE - ("gå"))(NEGATE 0 Pl1 OR &real OR (N Sg) - Px OR Adv); -ADD:xsyn-number_congruence-subj-verb (&syn-number_congruence-subj-verb) TARGET (V Prt Du1) OR (V Ind Prs Pl3) IF (NOT 0 ("liehket"))(-1 (Pron Sem/Hum Pers Pl1 Nom) LINK NEGATE -1 COMMA LINK (N Sg))(NEGATE 0 Pl1 OR &real OR (N Sg) - Px OR Adv)(NEGATE *-1 (V Pl1) OR (V Sg3) BARRIER NOT-ADV-PCLE - ("gå") - (Sg3 Nom) - (N Sg Nom)); +ADD:xsyn-number_congruence-subj-verb (&syn-number_congruence-subj-verb) TARGET (V Prt Du1) OR (V Ind Prs Pl3) IF (NOT 0 ("liehket"))(-1 (Pron Sem/Hum Pers Pl1 Nom) LINK NEGATE -1 COMMA LINK -1 (N Sg))(NEGATE 0 Pl1 OR &real OR (N Sg) - Px OR Adv)(NEGATE *-1 (V Pl1) OR (V Sg3) BARRIER NOT-ADV-PCLE - ("gå") - (Sg3 Nom) - (N Sg Nom)); ## Muhto kantorolbmái jorggihii čállinmášiidnii go ipmirdii mii {leimme} márškku bártni. ## Dat lea sivvan manin mii Sámedikkis háliidat ahte Sámediggi galggašii leat njunnošis čilgemin makkár prinsihpaid mii galget doarjut, lohká Muotka ja vuordá stuorra doarjaga. @@ -3934,7 +3926,7 @@ COPY:msyn-numerals-with-demopron (Sg Ela Attr &SUGGEST) EXCEPT (Pl Com Attr &msy COPY:msyn-numerals-with-demopron (Sg Com &SUGGEST) EXCEPT (Pl Gen &msyn-numerals-with-demopron) OR (Pl Gen Attr &msyn-numerals-with-demopron) OR (Pl Com &msyn-numerals-with-demopron) OR (Pl Com Attr &msyn-numerals-with-demopron) OR (Pl Nom &msyn-numerals-with-demopron) TARGET (&msyn-numerals-with-demopron) IF (*2 (N Sg Com) BARRIER NOT-Attr LINK NOT 0 (&msyn-numeral-attr-pl-ine)) ; ## Mujna li buorre vuorddemusá {då} guovte ráddidusbelludagájn aktan barggat. -COPY:msyn-numerals-with-demopron (Sg Gen &SUGGEST) EXCEPT (Pl Ine &msyn-numerals-with-demopron) OR (Pl Ine Attr &msyn-numerals-with-demopron) OR (Pl Nom &msyn-numerals-with-demopron) TARGET (&msyn-numerals-with-demopron) IF (1 (Num Sg Gen) LINK (*2 Po BARRIER NOT-NPMOD)) ; +COPY:msyn-numerals-with-demopron (Sg Gen &SUGGEST) EXCEPT (Pl Ine &msyn-numerals-with-demopron) OR (Pl Ine Attr &msyn-numerals-with-demopron) OR (Pl Nom &msyn-numerals-with-demopron) TARGET (&msyn-numerals-with-demopron) IF (1 (Num Sg Gen) LINK *2 Po BARRIER NOT-NPMOD) ; ## Barggo dåjmaduvvá {dajn} gudá stuoves barggojuohkusij tjadá masi tjuovvovasj prográmmasuorge gulluji