Skip to content

Commit

Permalink
Add substitute for work in Abl vs Nom
Browse files Browse the repository at this point in the history
вал : валда
пан : панда
  • Loading branch information
rueter committed Oct 24, 2023
1 parent eca85ba commit 349f972
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/cg3/disambiguator.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ SET HASCONNEG = V + Aux + Neg + Opt OR V + Aux + Neg + Imprt OR V + Aux + Neg +

SET TAKESLANG = LANGNAME + N + SP + Gen + Indef | LANGNAME + N + Sem/Hum + SP + Gen + Indef | LANGNAME + N + Pl + Gen + Indef ;#!!


# Quantifier sets
SET QNTSETSGNOM = Num + Sg + Nom | ("лама" Det + Sg + Nom) | ("кржа" Det + Sg + Nom) | ("сняра" Det + Sg + Nom) ;#!!

# Adjective sets

Expand Down Expand Up @@ -481,7 +482,9 @@ SUBSTITUTE (<W:0.0>) (<W:1.0>) TARGET ("ков" N SP Prl Indef);
SUBSTITUTE (<W:0.0>) (<W:1.0>) TARGET (Use/NG);
SUBSTITUTE (<W:0.0>) (<W:1.0>) TARGET WEIRDCOMP;
SUBSTITUTE (<W:0.0>) (<W:1.0>) TARGET NAMBPROP IF (-1 BOS);

SUBSTITUTE (<W:0.0>) (<W:1.0>) TARGET Abl IF (0 Nom) (0* (ScSg3) BARRIER BOS OR EOS OR CLB ) (NOT 0* QNTSETSGNOM BARRIER BOS OR EOS OR CLB );
#Фкя сяканять арафтсаськ шить каршес, а омбоцеть путсаськ шобда вастс, коса аф уленди ши [валда].
# deal with вал : валда, пан : панда

MAP (@CVP) TARGET CC IF (*-1 (VFIN) BARRIER CLB OR BOS LINK *1 (VFIN) BARRIER CLB OR EOS);
MAP (@CVP) TARGET CC IF (*1 (VFIN) BARRIER CLB OR EOS LINK *-1 (VFIN) BARRIER CLB OR BOS);
Expand Down Expand Up @@ -601,6 +604,14 @@ REMOVE:NotAddWhenIndef Clt/Add IF (0 (Adv Indef) OR (Pron Indef));
# ковга: Но деряй эсь эздот ковга туват?
# коста

REMOVE:NotNWhenPreviousAuxNegEgoConNeg N IF (-1 (V Aux Neg)) (0 ConNeg);
#Ведть лангс каятама вайнь слой, штоба афоль шиньфта ведсь

#move to substitute REMOVE Abl IF (0 Nom) (0* (ScSg3) BARRIER BOS OR EOS OR CLB ) (NOT 0* QNTSETSGNOM BARRIER BOS OR EOS OR CLB );




REMOVE:NoCoughWhenVFIN ("козомс" V IV Prec ScSg2) IF (0* VFIN BARRIER CLB OR BOS OR EOS);
# Коста содат?

Expand Down

0 comments on commit 349f972

Please sign in to comment.