@@ -52,7 +52,7 @@ export function defaultModifier(
52
52
const emphasis = wordUnit . emphasis != null ;
53
53
switch ( wordUnit . type ) {
54
54
case "number" :
55
- return number ( wordUnit . words ) . map < ModifierTranslation > ( ( number ) => {
55
+ return number ( wordUnit . words ) . map ( ( number ) => {
56
56
const quantity = number === 1 ? "singular" : "plural" ;
57
57
return {
58
58
type : "determiner" as const ,
@@ -77,7 +77,7 @@ export function defaultModifier(
77
77
switch ( definition . type ) {
78
78
case "noun" :
79
79
return noun ( { definition, reduplicationCount, emphasis } )
80
- . map < ModifierTranslation > ( ( noun ) => ( {
80
+ . map ( ( noun ) => ( {
81
81
type : "noun" ,
82
82
noun,
83
83
} ) ) ;
@@ -87,7 +87,7 @@ export function defaultModifier(
87
87
reduplicationCount,
88
88
emphasis,
89
89
} )
90
- . map < ModifierTranslation > ( ( noun ) => ( {
90
+ . map ( ( noun ) => ( {
91
91
type : "noun preposition" ,
92
92
noun,
93
93
preposition : definition . preposition ,
@@ -106,7 +106,7 @@ export function defaultModifier(
106
106
reduplicationCount,
107
107
emphasis : wordUnit . emphasis != null ,
108
108
} )
109
- . map < ModifierTranslation > ( ( determiner ) => ( {
109
+ . map ( ( determiner ) => ( {
110
110
type : "determiner" ,
111
111
determiner,
112
112
} ) ) ;
@@ -116,7 +116,7 @@ export function defaultModifier(
116
116
reduplicationCount,
117
117
emphasis : wordUnit . emphasis ,
118
118
} )
119
- . map < ModifierTranslation > ( ( adjective ) => ( {
119
+ . map ( ( adjective ) => ( {
120
120
type : "adjective" ,
121
121
adjective,
122
122
} ) ) ;
@@ -126,12 +126,12 @@ export function defaultModifier(
126
126
reduplicationCount,
127
127
emphasis : wordUnit . emphasis ,
128
128
} )
129
- . map < ModifierTranslation > ( ( adjective ) => ( {
129
+ . map ( ( adjective ) => ( {
130
130
type : "adjective" ,
131
131
adjective,
132
132
} ) ) ;
133
133
case "adverb" :
134
- return new ArrayResult < ModifierTranslation > ( [ {
134
+ return new ArrayResult ( [ {
135
135
type : "adverb" ,
136
136
adverb : word ( {
137
137
word : definition . adverb ,
@@ -257,7 +257,7 @@ export function multipleModifiers(
257
257
inPositionPhrase . length <= 1 &&
258
258
( noun . length === 0 || inPositionPhrase . length === 0 )
259
259
) {
260
- adjectival = new ArrayResult < MultipleModifierTranslation > ( [ {
260
+ adjectival = new ArrayResult ( [ {
261
261
type : "adjectival" ,
262
262
nounPreposition : nounPreposition [ 0 ] ?? null ,
263
263
determiner,
@@ -292,7 +292,7 @@ export function multipleModifiers(
292
292
emphasis : false ,
293
293
}
294
294
: null ;
295
- adverbial = new ArrayResult < MultipleModifierTranslation > ( [ {
295
+ adverbial = new ArrayResult ( [ {
296
296
type : "adverbial" ,
297
297
adverb,
298
298
inWayPhrase,
0 commit comments