Skip to content

Commit

Permalink
Add Dimin for Der/Dimin
Browse files Browse the repository at this point in the history
As in NomAg vs Der/NomAg
  • Loading branch information
rueter committed Mar 13, 2024
1 parent dbfc20b commit 1e35209
Show file tree
Hide file tree
Showing 5 changed files with 342 additions and 334 deletions.
7 changes: 6 additions & 1 deletion src/cg3/disambiguator.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ LIST Der/PassL = Der/PassL ;
LIST Der/NomAg = Der/NomAg ;
LIST Actor = NomAg Der/NomAg ;
LIST NomAct = NomAct ;
LIST Dimin = Dimin ;#exist as its own entity
LIST VAbess = VAbess ;

#!! * Sets for Derivation
Expand Down Expand Up @@ -408,6 +409,8 @@ LIST Err/Orth = Err/Orth ;
LIST Err/Orth-lowered-final-e-2-ja = Err/Orth-lowered-final-e-2-ja ;
LIST Err/MissingSpace = Err/MissingSpace ;

LIST ERRSORTH = Err/Orth Err/Orth-lowered-final-e-2-ja ;# all Err/Orth...

# Phrasal groups
# --------------

Expand Down Expand Up @@ -482,6 +485,7 @@ SUBSTITUTE (Sem/Plc) (*) TARGET (*) ;

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 (ERRSORTH);
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 ) (NOT 1 ("меле") OR ("инголе") OR ("башка"));
Expand Down Expand Up @@ -509,7 +513,8 @@ MAP:NnPron (@CNP) TARGET CC IF (-1 N) (1* ("эрьва") BARRIER CLB OR EOS OR C


REMOVE Der/MWN ; # If any other reading is possible.
REMOVE Der/Dimin ; # If any other reading is possible.
#REMOVE Der/Dimin ; # If any other reading is possible.
REMOVE:NoDerDiminWhenDimin Der/Dimin IF (0 Dimin) ; # If any other reading is possible.

#!! N ABBR not ABBR
#SELECT N IF (0 ABBR) ;
Expand Down
2 changes: 2 additions & 0 deletions src/fst/morphology/affixes/nouns.lexc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ LEXICON N_AVA-PL
! ава:ава
!: NMN_AVA-SG/PL ;

LEXICON N_VAL1MIA_IS_KIA_DIMIN
+Dimin: N_VAL1MIA ;
LEXICON N_VAL1MIA
! вальмя:вальмя
: NMN_VAL1MIA ;
Expand Down
1 change: 1 addition & 0 deletions src/fst/morphology/root.lexc
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ Multichar_Symbols !!≈!!@CODE@ / Analysis symbols

+NomAg
+NomAct
+Dimin

! Abbreviated words are classified with:
+ABBR !!= @CODE@ Abbreviation
Expand Down
Loading

0 comments on commit 1e35209

Please sign in to comment.