@@ -82,7 +82,7 @@ const comma = punctuation
8282 ) ;
8383const optionalComma = optional ( comma ) ;
8484const word = specificToken ( "word" ) . map ( ( { word } ) => word ) ;
85- const properWords = specificToken ( "proper word " ) . map ( ( { words } ) => words ) ;
85+ const properWords = specificToken ( "name " ) . map ( ( { words } ) => words ) ;
8686
8787function wordFrom ( set : Set < string > , description : string ) {
8888 return word . filter ( ( word ) =>
@@ -286,7 +286,7 @@ const modifiers = sequence(
286286 . map ( ( word ) : Modifier => ( { type : "simple" , word } ) )
287287 . filter ( filter ( MODIFIER_RULES ) ) ,
288288 properWords
289- . map ( ( words ) : Modifier => ( { type : "proper words " , words } ) )
289+ . map ( ( words ) : Modifier => ( { type : "name " , words } ) )
290290 . filter ( filter ( MODIFIER_RULES ) ) ,
291291 ) ,
292292 ) ,
@@ -305,7 +305,7 @@ const modifiers = sequence(
305305 ] )
306306 . filter ( filter ( MULTIPLE_MODIFIERS_RULES ) ) ;
307307const singlePhrase = phrase
308- . map ( ( phrase ) : MultiplePhrases => ( { type : "single " , phrase } ) ) ;
308+ . map ( ( phrase ) : MultiplePhrases => ( { type : "simple " , phrase } ) ) ;
309309const longAnu = sequence (
310310 specificToken ( "headless long glyph start" ) . with ( phrase ) ,
311311 manyAtLeastOnce (
@@ -324,12 +324,12 @@ function nestedPhrasesOnly(
324324 return singlePhrase ;
325325 } else {
326326 const [ first , ...rest ] = nestingRule ;
327- const type = first === "anu" ? "anu" : "and conjunction " ;
327+ const type = first === "anu" ? "anu" : "and" ;
328328 const longAnuParser = type === "anu"
329329 ? longAnu . map ( ( phrases ) : MultiplePhrases => ( {
330330 type : "anu" ,
331331 phrases : phrases . map ( ( phrase ) : MultiplePhrases => ( {
332- type : "single " ,
332+ type : "simple " ,
333333 phrase,
334334 } ) ) ,
335335 } ) )
@@ -379,7 +379,7 @@ const preposition = choice(
379379 emphasis : null ,
380380 } ,
381381 modifiers : [ ] ,
382- phrases : { type : "single " , phrase } ,
382+ phrases : { type : "simple " , phrase } ,
383383 emphasis : null ,
384384 } ) ) ,
385385 sequence (
@@ -411,7 +411,7 @@ const preposition = choice(
411411 return {
412412 preposition : { type : "simple" , word : words [ 0 ] , emphasis : null } ,
413413 modifiers,
414- phrases : { type : "single " , phrase } ,
414+ phrases : { type : "simple " , phrase } ,
415415 emphasis : null ,
416416 } ;
417417 } ) ,
@@ -424,7 +424,7 @@ const preposition = choice(
424424 } ,
425425 modifiers : [ ] ,
426426 phrases : {
427- type : "single " ,
427+ type : "simple " ,
428428 phrase : {
429429 type : "simple" ,
430430 headWord : {
@@ -442,7 +442,7 @@ const preposition = choice(
442442 optionalCombined ( prepositionSet , "preposition" ) ,
443443 modifiers ,
444444 nestedPhrases ( [ "anu" ] ) as Parser <
445- MultiplePhrases & { type : "single " | "anu" }
445+ MultiplePhrases & { type : "simple " | "anu" }
446446 > ,
447447 optionalEmphasis ,
448448 )
@@ -490,16 +490,16 @@ function multiplePredicates(
490490 if ( nestingRule . length === 0 ) {
491491 return choice (
492492 associatedPredicates ( [ ] ) ,
493- phrase . map ( ( predicate ) : Predicate => ( { type : "single " , predicate } ) ) ,
493+ phrase . map ( ( predicate ) : Predicate => ( { type : "simple " , predicate } ) ) ,
494494 ) ;
495495 } else {
496496 const [ first , ...rest ] = nestingRule ;
497- const type = first === "anu" ? "anu" : "and conjunction " ;
497+ const type = first === "anu" ? "anu" : "and" ;
498498 const longAnuParser : Parser < Predicate > = type === "anu"
499499 ? longAnu . map ( ( phrases ) : Predicate => ( {
500500 type : "anu" ,
501501 predicates : phrases . map ( ( predicate ) : Predicate => ( {
502- type : "single " ,
502+ type : "simple " ,
503503 predicate,
504504 } ) ) ,
505505 } ) )
@@ -541,7 +541,7 @@ const clause = choice(
541541 . map ( ( [ subject , predicates ] ) : Clause => ( {
542542 type : "li clause" ,
543543 subjects : {
544- type : "single " ,
544+ type : "simple " ,
545545 phrase : {
546546 type : "simple" ,
547547 headWord : {
@@ -631,8 +631,8 @@ const filler = choice(
631631 ) ,
632632 )
633633 ) ,
634- specificToken ( "multiple a" )
635- . map ( ( { count } ) : Filler => ( { type : "multiple a" , count } ) ) ,
634+ specificToken ( "reduplicated a" )
635+ . map ( ( { count } ) : Filler => ( { type : "reduplicated a" , count } ) ) ,
636636 specificToken ( "long word" )
637637 . map ( ( { word, length } ) : Filler =>
638638 fillerSet . has ( word )
0 commit comments