@@ -82,7 +82,7 @@ const comma = punctuation
82
82
) ;
83
83
const optionalComma = optional ( comma ) ;
84
84
const word = specificToken ( "word" ) . map ( ( { word } ) => word ) ;
85
- const properWords = specificToken ( "proper word " ) . map ( ( { words } ) => words ) ;
85
+ const properWords = specificToken ( "name " ) . map ( ( { words } ) => words ) ;
86
86
87
87
function wordFrom ( set : Set < string > , description : string ) {
88
88
return word . filter ( ( word ) =>
@@ -286,7 +286,7 @@ const modifiers = sequence(
286
286
. map ( ( word ) : Modifier => ( { type : "simple" , word } ) )
287
287
. filter ( filter ( MODIFIER_RULES ) ) ,
288
288
properWords
289
- . map ( ( words ) : Modifier => ( { type : "proper words " , words } ) )
289
+ . map ( ( words ) : Modifier => ( { type : "name " , words } ) )
290
290
. filter ( filter ( MODIFIER_RULES ) ) ,
291
291
) ,
292
292
) ,
@@ -305,7 +305,7 @@ const modifiers = sequence(
305
305
] )
306
306
. filter ( filter ( MULTIPLE_MODIFIERS_RULES ) ) ;
307
307
const singlePhrase = phrase
308
- . map ( ( phrase ) : MultiplePhrases => ( { type : "single " , phrase } ) ) ;
308
+ . map ( ( phrase ) : MultiplePhrases => ( { type : "simple " , phrase } ) ) ;
309
309
const longAnu = sequence (
310
310
specificToken ( "headless long glyph start" ) . with ( phrase ) ,
311
311
manyAtLeastOnce (
@@ -324,12 +324,12 @@ function nestedPhrasesOnly(
324
324
return singlePhrase ;
325
325
} else {
326
326
const [ first , ...rest ] = nestingRule ;
327
- const type = first === "anu" ? "anu" : "and conjunction " ;
327
+ const type = first === "anu" ? "anu" : "and" ;
328
328
const longAnuParser = type === "anu"
329
329
? longAnu . map ( ( phrases ) : MultiplePhrases => ( {
330
330
type : "anu" ,
331
331
phrases : phrases . map ( ( phrase ) : MultiplePhrases => ( {
332
- type : "single " ,
332
+ type : "simple " ,
333
333
phrase,
334
334
} ) ) ,
335
335
} ) )
@@ -379,7 +379,7 @@ const preposition = choice(
379
379
emphasis : null ,
380
380
} ,
381
381
modifiers : [ ] ,
382
- phrases : { type : "single " , phrase } ,
382
+ phrases : { type : "simple " , phrase } ,
383
383
emphasis : null ,
384
384
} ) ) ,
385
385
sequence (
@@ -411,7 +411,7 @@ const preposition = choice(
411
411
return {
412
412
preposition : { type : "simple" , word : words [ 0 ] , emphasis : null } ,
413
413
modifiers,
414
- phrases : { type : "single " , phrase } ,
414
+ phrases : { type : "simple " , phrase } ,
415
415
emphasis : null ,
416
416
} ;
417
417
} ) ,
@@ -424,7 +424,7 @@ const preposition = choice(
424
424
} ,
425
425
modifiers : [ ] ,
426
426
phrases : {
427
- type : "single " ,
427
+ type : "simple " ,
428
428
phrase : {
429
429
type : "simple" ,
430
430
headWord : {
@@ -442,7 +442,7 @@ const preposition = choice(
442
442
optionalCombined ( prepositionSet , "preposition" ) ,
443
443
modifiers ,
444
444
nestedPhrases ( [ "anu" ] ) as Parser <
445
- MultiplePhrases & { type : "single " | "anu" }
445
+ MultiplePhrases & { type : "simple " | "anu" }
446
446
> ,
447
447
optionalEmphasis ,
448
448
)
@@ -490,16 +490,16 @@ function multiplePredicates(
490
490
if ( nestingRule . length === 0 ) {
491
491
return choice (
492
492
associatedPredicates ( [ ] ) ,
493
- phrase . map ( ( predicate ) : Predicate => ( { type : "single " , predicate } ) ) ,
493
+ phrase . map ( ( predicate ) : Predicate => ( { type : "simple " , predicate } ) ) ,
494
494
) ;
495
495
} else {
496
496
const [ first , ...rest ] = nestingRule ;
497
- const type = first === "anu" ? "anu" : "and conjunction " ;
497
+ const type = first === "anu" ? "anu" : "and" ;
498
498
const longAnuParser : Parser < Predicate > = type === "anu"
499
499
? longAnu . map ( ( phrases ) : Predicate => ( {
500
500
type : "anu" ,
501
501
predicates : phrases . map ( ( predicate ) : Predicate => ( {
502
- type : "single " ,
502
+ type : "simple " ,
503
503
predicate,
504
504
} ) ) ,
505
505
} ) )
@@ -541,7 +541,7 @@ const clause = choice(
541
541
. map ( ( [ subject , predicates ] ) : Clause => ( {
542
542
type : "li clause" ,
543
543
subjects : {
544
- type : "single " ,
544
+ type : "simple " ,
545
545
phrase : {
546
546
type : "simple" ,
547
547
headWord : {
@@ -631,8 +631,8 @@ const filler = choice(
631
631
) ,
632
632
)
633
633
) ,
634
- specificToken ( "multiple a" )
635
- . map ( ( { count } ) : Filler => ( { type : "multiple a" , count } ) ) ,
634
+ specificToken ( "reduplicated a" )
635
+ . map ( ( { count } ) : Filler => ( { type : "reduplicated a" , count } ) ) ,
636
636
specificToken ( "long word" )
637
637
. map ( ( { word, length } ) : Filler =>
638
638
fillerSet . has ( word )
0 commit comments