mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
remove some redundant adverbs from DictEng.gf
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -167,7 +167,7 @@ oper
|
|||||||
|
|
||||||
compoundA : A -> A ; -- -/more/most ditto
|
compoundA : A -> A ; -- -/more/most ditto
|
||||||
simpleA : A -> A ; -- young,younger,youngest
|
simpleA : A -> A ; -- young,younger,youngest
|
||||||
|
irregAdv : A -> Str -> A ;
|
||||||
|
|
||||||
--3 Two-place adjectives
|
--3 Two-place adjectives
|
||||||
|
|
||||||
@@ -455,17 +455,19 @@ mkSubj : Str -> Subj = \s -> lin Subj {s = s} ;
|
|||||||
"e" => happy ;
|
"e" => happy ;
|
||||||
_ => duplFinal happy + "e"
|
_ => duplFinal happy + "e"
|
||||||
} ;
|
} ;
|
||||||
happily : Str = case happy of {
|
in mkADeg happy (happie + "r") (happie + "st") (adj2adv happy) ;
|
||||||
_ + "ble" => init happy + "y" ;
|
|
||||||
_ + "y" => happ + "ily" ;
|
adj2adv : Str -> Str = \happy ->
|
||||||
_ + "ll" => happy + "y" ;
|
case happy of {
|
||||||
_ => happy + "ly"
|
_ + "ble" => init happy + "y" ;
|
||||||
} ;
|
_ + "y" => init happy + "ily" ;
|
||||||
in mkADeg happy (happie + "r") (happie + "st") happily ;
|
_ + "ll" => happy + "y" ;
|
||||||
|
_ => happy + "ly"
|
||||||
|
} ;
|
||||||
|
|
||||||
duplADeg fat =
|
duplADeg fat =
|
||||||
mkADeg fat
|
mkADeg fat
|
||||||
(fat + last fat + "er") (fat + last fat + "est") (fat + "ly") ;
|
(fat + last fat + "er") (fat + last fat + "est") (adj2adv fat) ;
|
||||||
|
|
||||||
compoundADeg a =
|
compoundADeg a =
|
||||||
let ad = (a.s ! AAdj Posit Nom)
|
let ad = (a.s ! AAdj Posit Nom)
|
||||||
@@ -591,7 +593,7 @@ mkSubj : Str -> Subj = \s -> lin Subj {s = s} ;
|
|||||||
mkA = overload {
|
mkA = overload {
|
||||||
mkA : Str -> A = regA ;
|
mkA : Str -> A = regA ;
|
||||||
mkA : (fat,fatter : Str) -> A = \fat,fatter ->
|
mkA : (fat,fatter : Str) -> A = \fat,fatter ->
|
||||||
mkAdjective fat fatter (init fatter + "st") (fat + "ly") ;
|
mkAdjective fat fatter (init fatter + "st") (adj2adv fat) ;
|
||||||
mkA : (good,better,best,well : Str) -> A = \a,b,c,d ->
|
mkA : (good,better,best,well : Str) -> A = \a,b,c,d ->
|
||||||
mkAdjective a b c d
|
mkAdjective a b c d
|
||||||
} ;
|
} ;
|
||||||
@@ -600,6 +602,8 @@ mkSubj : Str -> Subj = \s -> lin Subj {s = s} ;
|
|||||||
simpleA a =
|
simpleA a =
|
||||||
let ad = (a.s ! AAdj Posit Nom)
|
let ad = (a.s ! AAdj Posit Nom)
|
||||||
in regADeg ad ;
|
in regADeg ad ;
|
||||||
|
|
||||||
|
irregAdv a adv = lin A {s = table {AAdv => adv; aform => a.s ! aform}} ;
|
||||||
|
|
||||||
prepA2 : A -> Prep -> A2 ;
|
prepA2 : A -> Prep -> A2 ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user