Skip to content

Commit

Permalink
disam, func og dep
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyMcFly committed Nov 13, 2023
1 parent 3951ff0 commit 9a52065
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/cg3/dependency.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -10611,7 +10611,7 @@ TO (*-1A VFIN + 1Sg BARRIER DIRTALESTART LINK NEGATE *1 CONJ-C BARRIER (*) - KO
#(NEGATE -1 KOMMA LINK 1 _TARGET_ + CONJ-C)#Taamani angaami qarnganit anaanami inuunera alianartoq qanorlu naasimanersoq tusaramiuk aalajangersimavoq nammineq ajunngitsumik inuuniarsarissalluni, AJUTOORUMANANILU aatsaat uinikkuni angummik ilaqarumaarluni.
#(NEGATE -2 VFIN + 3Sg + QAR LINK 1 KOMMA LINK *1 _TARGET_ + QAR + 4Sg)#Ammasarfiani tamatigut akeqanngitsunik kaageqartarpoq, KAKAOEQARLUNI, kaffeqarluni theqarlunilu.
#(NEGATE *-1 VFIN + 3Sg + QAR + FOOD OR VFIN + ("sassaaller") LINK *1 _TARGET_ + 4Sg + QAR + FOOD)#Ammasarfiani tamatigut akeqanngitsunik kaageqartarpoq, kakaoeqarluni, KAFFEQARLUNI theqarlunilu.
#(NEGATE 0 CONJ-C LINK NOT *-1 V BARRIER VFIN)#Angut taanna 19-inik ukioqarpoq, KUUMMIUNINNGAANNEERSUULLUNILU.
#(NEGATE 0 CONJ-C)#Angut taanna 19-inik ukioqarpoq, KUUMMIUNINNGAANNEERSUULLUNILU.

#;
#MAP:1160C @<ADVL TARGET Cont + 4Sg IF (*-1 @<ADVL LINK 1 CONJ-C LINK *1 _TARGET_ BARRIER (*) - OBLIQUE)#IA marlunngorpat qinersisussat 36 procentiisa taaguutissagaat, apersuinerup takutippaa, taamaalippallu IA Inatsisartuni sisamanik amerlanerusunik ilaasortaqalissaaq, aqqaneq marlunnik ilaasortaqalerluni nunatsinnilu partiini ANNERPAALISSALLUNI.
Expand Down Expand Up @@ -10640,7 +10640,7 @@ SETPARENT:M1190 (@ADVL>) + CONT + 4Sg IF
TO (*1A V + 3Sg OR CON_CAU + 3Sg OR Par + 4Sg LINK NEGATE *-1 KOMMA LINK *-1 _TARGET_ );
#
#MAP:M1199 (@ADVL>) TARGET CONT + 4Sg IF (*1 Par + 3Sg BARRIER CLB)(NEGATE *0 VFIN BARRIER UNA OR UKU); #i sætninger af PRED2-type
#MAP:M1200 (@<ADVL) TARGET CONT + 4Sg IF (*-1 VFIN - ORATIOOBLVERB + 3Sg - ("imaap") BARRIER KOMMA)(NEGATE 0 CONJ-LU)(NEGATE 1 CONT + 4Sg - CONJ-LU)(NEGATE *-1 CONJ-C - V BARRIER V LINK -1 VFIN)(NEGATE 1 @ADVL>); #BARRIER for at forebygge, at ledsagemåden peger baglæns i stedet for forlæns ved komma #undtaget imaap fordi en 4Sg Cont sandsynligvis ikke peger på den.
#MAP:M1200 (@<ADVL) TARGET CONT + 4Sg IF (*-1 VFIN - ORATIOOBLVERB + 3Sg - ("imaap") BARRIER KOMMA)(NEGATE 0 CONJ-LU)(NEGATE 1 CONT - CONJ-LU)(NEGATE *-1 CONJ-C - V BARRIER V LINK -1 VFIN)(NEGATE 1 @ADVL>); #BARRIER for at forebygge, at ledsagemåden peger baglæns i stedet for forlæns ved komma #undtaget imaap fordi en 4Sg Cont sandsynligvis ikke peger på den.
#@RULENAME@

SETPARENT:M1210 (@ADVL>) + Cont + 1Pl OR ContNeg + 1Pl TO (*1 VFIN + 1Pl);
Expand Down
34 changes: 25 additions & 9 deletions src/cg3/disambiguator.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ LIST TARIAQAR_SSA_GALUAR = TARIAQAR\=SSA\=GALUAR ;
LIST TARIAQAR_SSA_NIR = TARIAQAR\=SSA\=NIR ;
LIST TARIAQAR_SSA_NNGIT = TARIAQAR\=SSA\=NNGIT ;
LIST TARIAQAR_TAR = TARIAQAR\=TAR ;
LIST TE = TE ;
LIST TIGE = TIGE ;
LIST TIGE_TAR = TIGE\=TAR ;
LIST TIP = TIP ;
Expand Down Expand Up @@ -9236,6 +9237,9 @@ SELECT:8534DF ("saaneq") + KUQ;
SELECT:8534DG ("pujortaat") IF (0 ("pujoq") OR ("pujortaq")); #PUJORTAAT milluteqqaarlugu misigissuseq eqqumiillunilu nuannerpoq.
REMOVE:8534DH ("nakorsaq") + UTE IF (0 ("nakorsaat"));
SELECT:8534DI ("issi") + SUAQ;
REMOVE:8534DJ ("pup") + NIQ IF (0 ("punneq"));
REMOVE:8534DK ("aassuk") - UTE IF (0 ("aak") + SUAQ);
REMOVE:8534DL ("malik") + TAQ IF (0 ("malip") + TE);
REMOVE:8599A TUQ + Aeq - Der/vn IF (0 TUQ + Aeq + Der/vn)(NEGATE 1 ("ip")); #De særlige former af TUQ + Aeq på transitiver fulgt af "ippaa" slettes hvis ikke fulgt af "ippaa"
REMOVE:8599B (*) - LEX_FULLFORM_NOUN ; #Jude 20230908

Expand Down Expand Up @@ -9708,11 +9712,11 @@ REMOVE:5490DI (/"akoor"\ Gram/TV\ LIR\ Der/vv\ TIP/l) IF (0 (/"aku"\ U\ Der/nv\
REMOVE:5490DJ (/"aap"\ Gram/TV\ LLAR\ Der/vv\ NIR/l) + TRANSVERB IF (0 ("aallarner")); #PL20221218
REMOVE:5490DK (/"toqut.*"\ Gram/TV/l) + N OR INTRANSVERB IF (0 (/"toqup"\ Gram/TV\ HTR/l)); #PL20221219 2001-imili inissiisarfimmiitilluni inooqamminut politiinullu siorasaarisimasutut TOQUTSERIARSIMASUTULLU ilaatigut eqqartuunneqarluni Herstedvesterimi piffissaligaanngitsumik pineqaatissinneqaqqippoq. Fjerner toqutser og toqutsip
REMOVE:5490DL ("angi") IF (0 ("annilaar"));
SELECT:5490DM1 ("niller") + (/^i?Sem/speak_mnr/r) IF (0 1Sg OR 2Sg OR 1Pl OR 2Pl); #mennesker skriger oftere end de er kolde: Tuparujussuarpunga NILLERUJUSSUARLUNGALU
SELECT:5490DM2 ("niller") + (/^i?Sem/be_attribute/r) IF (*-1 (/^i?Sem/wea-wind/r)); #Anori NILLERTOQ masannartorlu suli timinni malugisinnaavara, inili kiatsissimaqaaq pujoqalersimaqalunilu.
SELECT:5490DM3 ("niller") + (/^i?Sem/be_attribute/r) IF (0 Ins LINK 1 ("serpartar")); #Anillannginninni kiinara nillertumik serpartalaarpara.
SELECT:5490DM4 ("niller") + (/^i?Sem/be_attribute/r) IF (*-1 (/^i?Sem/percep-l/r)); #Illarneq imaqanngitsoq NILLERTOQ.
SELECT:5490DM5 ("niller") + (/^i?Sem/be_attribute/r) IF (*0 ("qiia")); #Iluatiguuginnaagama NILLEQIMMAT qiiavunga.
SELECT:5490DM1 ("niller") + (/^i?Sem/be_attribute/r) IF (*-1 (/^i?Sem/wea-wind/r)); #Anori NILLERTOQ masannartorlu suli timinni malugisinnaavara, inili kiatsissimaqaaq pujoqalersimaqalunilu.
SELECT:5490DM2 ("niller") + (/^i?Sem/be_attribute/r) IF (0 Ins LINK 1 ("serpartar")); #Anillannginninni kiinara nillertumik serpartalaarpara.
SELECT:5490DM3 ("niller") + (/^i?Sem/be_attribute/r) IF (*-1 (/^i?Sem/percep-l/r)); #Illarneq imaqanngitsoq NILLERTOQ.
SELECT:5490DM4 ("niller") + (/^i?Sem/be_attribute/r) IF (*0 ("qiia")); #Iluatiguuginnaagama NILLEQIMMAT qiiavunga.
REMOVE:5490DM5 ("niller") + (/^i?Sem/be_attribute/r) IF (0 (/^i?Sem/speak_mnr/r)); #øvrige tilfælde
REMOVE:5490DN (/"angi"\ Gram/IV\ NIRSAQ\ Der/vn\ U/l) IF (0 (/"anner"\ Gram/IV\ SAR\ Der/vv\ Gram/TV\ HTR/l) LINK 0 (/NIQ\ Der/vn\ \(TAQ\ Der/nn\ \)?LIK/l)); #PL20221229 Nuummi politiit tallimanngormat nalunaaqutaq 21-p missaani ANNERSAANERTALIMMIK saassussinermut takunnissimasinnaasunik ujartuipput.
REMOVE:5490DO1 ("isaap") OR ("isaar") OR ("isa") + U IF (0 ("iser" A) + &&IV_SUBJ& LINK *-1 Abs + &&IV_SUBJ& - HUMAN); #PL20230108 Soorlumi illup ilua kissakkiartortoq, tipilu ikuallassunni matup ataatigut ISAALERLUNI.
REMOVE:5490DO1 ("isaap") OR ("isaar") OR ("isa") + U IF (0 ("iser" A) LINK *0 ("ulikkaar")); #Taannaqami isaalerput isaalerput, bussit ulikkaavillutik.
Expand Down Expand Up @@ -9831,6 +9835,7 @@ SELECT:5490HP ("avissaar");
REMOVE:5490HQ ("aalajanger") + Gram/TV + Con IF (0 ("aalajanger") + Gram/IV); #Taamaaliorniarlusi AALAJANGERUSSI atuartitasi nammineerlusi ilisimatikkumaarpasi.
REMOVE:5490HR ("kaa") + TAR + VIK IF (0 ("kaasar") + VIK);
REMOVE:5490HS ("ani") + JA IF (0 ("ania"));
REMOVE:5490HT ("puja") IF (0 ("pujap")); #ville være "puja" kun i meget specifik kontekst

# Verbum eller partikel?
SELECT:5491A ("aarit") IF (-1 BOS);
Expand Down Expand Up @@ -12538,6 +12543,7 @@ SELECT:Sem0339 ("iki") + (/^i?Sem/enter/r) IF (0 JURAR);
SELECT:Sem0340 ("ikuma") + (/^i?Sem/burn/r) IF (*-1 (/^i?Sem/cc-fire/r)); #Innersuarlu silammuinnavik IKUMAGAMI tikka avammuinnaq soorlu supineqartartoq.
SELECT:Sem0341 ("ikuma") + (/^i?Sem/burn/r) IF (*0 ("tusaa")); #Tusaasinnaavara gangimi sakkortuumik taqqamani IKUMASOQARPALUTTOQ. (Lys kan ikke høres.)
SELECT:Sem0342 ("ikuma") + TIP + (/^i?Sem/light_emission/r); #Uunnaavik IKUMATIINNASSANERLUGU eqqarsarsuataarninni suut kingumut pisimasut eqqaanngitsoornerpakka. #kan ikke tænke på en god regel ligenu
SELECT:Sem0343 ("ikuma") + (/^i?Sem/be_attribute/r) IF (*-1 ("radio")); #radioen kan ikke brænde eller lyse
REMOVE:Sem0344 ("ikummarip") + (/^i?Sem/burn.*/r) IF (NOT *-1 (/^i?Sem/cc-fire.*/r)); #Sila taartuinnaavoq, akitsinnilu Nuussuaq IKUMMARIPPOQ, silarlussuup masannartumik akullip sukkut tamaana sakkukilliimeriaraangat qullerpassuit ersersilertarpai.

REMOVE:Sem0345 ("supi") + (/^i?Sem/deactivate.*/r)
Expand All @@ -12559,11 +12565,12 @@ REMOVE:Sem0370 ("ili") + (/^i?Sem/put_deposit.*/r) IF (0 (/^i?Sem/put/r)) #Mobii

REMOVE:Sem0375 ("tigu") + (/^i?Sem/get.*/r) IF (0 (/^i?Sem/take.*/r));

REMOVE:Sem0380 ("uter") + (/^i?Sem/worsen.*/r); #lav undtagelser når de kommer
REMOVE:Sem0380 ("uter") + Gram/IV + (/^i?Sem/worsen.*/r); #lav undtagelser når de kommer
#REMOVE:Sem0380 ("uter") + (/^i?Sem/worsen.*/r) IF (-1 Trm);
#REMOVE:Sem0381 ("uter") + (/^i?Sem/worsen.*/r) IF (0 QATTAAR); #UTEQATTAARPOQ.
#REMOVE:Sem0382 ("uter") + (/^i?Sem/worsen.*/r) IF (*-1 Abs + NON_HUMAN); #Piviusumut appakaakkiartorninni tusaasaarussimagaluarlunga, tusaasakka UTERTUTUT nippakkiartulermata silattuaqiartulerpunga.
#SELECT:Sem0382 ("uter") + (/^i?Sem/continue.*/r) IF (*-1 ("oqaaseq")); #Inuppassuit Inatsisartut tungaannut qanilligaluttuinnarlutik oqaaseq naammaleqaaq UTEQATTAARPAAT.
#SELECT:Sem0382 ("uter") + (/^i?Sem/continue.*/r) IF (*-1 ("oqaaseq"));
SELECT:Sem0381 ("uter") + Gram/TV + (/^i?Sem/continue/r) IF (*-1 ("oqaaseq") OR PUNCT); #Inuppassuit Inatsisartut tungaannut qanilligaluttuinnarlutik oqaaseq naammaleqaaq UTEQATTAARPAAT. #”Peerit!” silaannarmut suaartarlunga UTEQATTAARPARA.

SELECT:Sem0385 ("ilaartor") + (/^i?Sem/say.*/r) IF (*0 DIRTALESTART OR DIRTALESLUT);

Expand Down Expand Up @@ -12837,10 +12844,19 @@ REMOVE:Sem0890 ("qaa") + (/^i?Sem/light_emission/r) IF (0 (/^i?Sem/appear/r) + I

SELECT:Sem0895 ("ikip") + (/^i?Sem/activate/r) IF (*0 ("cigaret")); #Arsakoorfimmi cigarettinik sinnikusiulerpoq nungungajalluinnarnikumillu tiguseriarluni IKILLUGU.

SELECT:Sem0900 (/"ila"\ GE/l) + (/^i?Sem/be_part/r) + VFIN + &&SUBJTRANSVERB& IF (0 (/^i?Sem/socialize.?/r) LINK *-1 (/^i?Sem/ac/r) + &&SUBJTRANSVERB&) ;

SELECT:Sem0900 (/"ila"\ GE/l) + (/^i?Sem/be_part/r) + VFIN + &&SUBJTRANSVERB& IF (0 (/^i?Sem/socialize.?/r) LINK *-1 (/^i?Sem/ac/r) + &&SUBJTRANSVERB&);
#Følgende regl er en ægte ambiguitet. Ren sandsynlighed.
REMOVE:Sem0901 3PlO IF (0 3SgO + (/^i?Sem/be_part/r) + VFIN + &&SUBJTRANSVERB& LINK -1* (/^i?Sem/ac/r) + Rel + &&SUBJTRANSVERB&) ;

REMOVE:Sem0905 ("mianersor") + QQU + UTE + (/^i?Sem/cc-h/r) IF (0 (/^i?Sem/sem-s/r)); #lav undtagelser når de kommer

REMOVE:Sem0910 ("nalunaar") + UTE + (/^i?Sem/conv/r) IF (0 (/^i?Sem/sem/r)); #lav undtagelser når de kommer

REMOVE:Sem0915 ("inuusup") + TUQ + (/^i?Sem/H/r) + $$KASUS + $$NUMERUS IF (0 (/^i?Sem/f-h/r) + $$KASUS + $$NUMERUS); #”Mianersoqqussummik nalunaarut: Angut inuusuttoq politiinit ujaarineqarpoq.

REMOVE:Sem0920 ("malip") + TE + (/^i?Sem/ac/r) IF (0 (/^i?Sem/H/r)); #Maani nipaannersuarmi nipaa amiilaarnarpoq, tassamiuna toqup MALITTAA. #lav undtagelser når de kommer


##############
AFTER-SECTIONS

Expand Down
7 changes: 5 additions & 2 deletions src/cg3/functions.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -8557,7 +8557,7 @@ MAP:M1160B @<ADVL TARGET CONT + 4Sg IF (*-1 VFIN + 3Sg BARRIER CONJ-C LINK NEGAT
(NEGATE -1 KOMMA LINK 1 _TARGET_ + CONJ-C)#Taamani angaami qarnganit anaanami inuunera alianartoq qanorlu naasimanersoq tusaramiuk aalajangersimavoq nammineq ajunngitsumik inuuniarsarissalluni, AJUTOORUMANANILU aatsaat uinikkuni angummik ilaqarumaarluni.
(NEGATE -2 VFIN + 3Sg + QAR LINK 1 KOMMA LINK *1 _TARGET_ + QAR + 4Sg)#Ammasarfiani tamatigut akeqanngitsunik kaageqartarpoq, KAKAOEQARLUNI, kaffeqarluni theqarlunilu.
(NEGATE *-1 VFIN + 3Sg + QAR + FOOD OR VFIN + ("sassaaller") LINK *1 _TARGET_ + 4Sg + QAR + FOOD)#Ammasarfiani tamatigut akeqanngitsunik kaageqartarpoq, kakaoeqarluni, KAFFEQARLUNI theqarlunilu.
(NEGATE 0 CONJ-C LINK NOT *-1 V BARRIER VFIN)#Angut taanna 19-inik ukioqarpoq, KUUMMIUNINNGAANNEERSUULLUNILU.
(NEGATE 0 CONJ-C)#Angut taanna 19-inik ukioqarpoq, KUUMMIUNINNGAANNEERSUULLUNILU.
;
MAP:1160C @<ADVL TARGET Cont + 4Sg IF (*-1 @<ADVL LINK 1 CONJ-C LINK *1 _TARGET_ BARRIER (*) - OBLIQUE)#IA marlunngorpat qinersisussat 36 procentiisa taaguutissagaat, apersuinerup takutippaa, taamaalippallu IA Inatsisartuni sisamanik amerlanerusunik ilaasortaqalissaaq, aqqaneq marlunnik ilaasortaqalerluni nunatsinnilu partiini ANNERPAALISSALLUNI.
;
Expand All @@ -8578,7 +8578,10 @@ MAP:M1190 @ADVL> TARGET CONT + 4Sg IF (*1 V + 3Sg OR CON_CAU + 3Sg OR Par + 4Sg
;

MAP:M1199 @ADVL> TARGET CONT + 4Sg IF (*1 Par + 3Sg BARRIER CLB)(NEGATE *0 VFIN BARRIER UNA OR UKU); #i sætninger af PRED2-type
MAP:M1200 @<ADVL TARGET CONT + 4Sg IF (*-1 VFIN - ORATIOOBLVERB + 3Sg - ("imaap") BARRIER KOMMA)(NEGATE 0 CONJ-LU)(NEGATE 1 CONT + 4Sg - CONJ-LU)(NEGATE *-1 CONJ-C - V BARRIER V LINK -1 VFIN)(NEGATE 1 @ADVL>); #BARRIER for at forebygge, at ledsagemåden peger baglæns i stedet for forlæns ved komma #undtaget imaap fordi en 4Sg Cont sandsynligvis ikke peger på den.
MAP:M1200 @<ADVL TARGET CONT + 4Sg IF (*-1 VFIN - ORATIOOBLVERB + 3Sg - ("imaap") BARRIER KOMMA)(NEGATE 0 CONJ-LU)
(NEGATE 1 CONT - CONJ-LU)
(NEGATE *-1 CONJ-C - V BARRIER V LINK -1 VFIN)
(NEGATE 1 @ADVL>); #BARRIER for at forebygge, at ledsagemåden peger baglæns i stedet for forlæns ved komma #undtaget imaap fordi en 4Sg Cont sandsynligvis ikke peger på den.

MAP:M1210 @ADVL> TARGET Cont + 1Pl OR ContNeg + 1Pl IF (*1 VFIN + 1Pl);
MAP:M1220 @<ADVL TARGET Cont + 1Pl OR ContNeg + 1Pl IF (*-1 VFIN + 1Pl)(NEGATE 0 CONJ-LU)(NEGATE *1 Par BARRIER KOMMA)
Expand Down

0 comments on commit 9a52065

Please sign in to comment.