mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 00:32:51 -06:00
English complete (but needs more testing)
This commit is contained in:
@@ -211,5 +211,15 @@ oper
|
||||
contractNot : Str -> Str = \is -> variants {is ++ "not" ; is + "n't"} ;
|
||||
|
||||
dont = contractNot (verbP3Do.s ! InfImp) ;
|
||||
|
||||
-- From $numerals$.
|
||||
|
||||
param DForm = unit | teen | ten ;
|
||||
oper mkNum : Str -> Str -> Str -> {s : DForm => Str} =
|
||||
\two -> \twelve -> \twenty ->
|
||||
{s = table {unit => two ; teen => twelve ; ten => twenty}} ;
|
||||
oper regNum : Str -> {s : DForm => Str} =
|
||||
\six -> mkNum six (six + "teen") (six + "ty") ;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user