File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -642,6 +642,18 @@ function defaultPhrase(
642
642
)
643
643
. flatMap ( ( [ headWord , modifier ] ) => {
644
644
if ( headWord . type === "noun" && modifier . type === "adjectival" ) {
645
+ let count : number ;
646
+ switch ( phrase . headWord . type ) {
647
+ case "number" :
648
+ case "default" :
649
+ count = 1 ;
650
+ break ;
651
+ case "x ala x" :
652
+ return new Output ( ) ;
653
+ case "reduplication" :
654
+ count = phrase . headWord . count ;
655
+ break ;
656
+ }
645
657
const determiner = fixDeterminer ( [
646
658
...headWord . determiner ,
647
659
...modifier . determiner ,
@@ -694,7 +706,7 @@ function defaultPhrase(
694
706
determiner,
695
707
adjective,
696
708
noun : {
697
- word : noun . noun ,
709
+ word : repeat ( noun . noun , count ) ,
698
710
emphasis : phrase . headWord . emphasis != null ,
699
711
} ,
700
712
number,
You can’t perform that action at this time.
0 commit comments