@@ -24,8 +24,7 @@ export type ModifierTranslation =
24
24
| Readonly < { type : "adjective" ; adjective : English . AdjectivePhrase } >
25
25
| Readonly < { type : "determiner" ; determiner : English . Determiner } >
26
26
| Readonly < { type : "adverb" ; adverb : English . Adverb } >
27
- | Readonly < { type : "name" ; name : string } >
28
- | Readonly < { type : "position phrase" ; noun : English . NounPhrase } > ;
27
+ | Readonly < { type : "name" ; name : string } > ;
29
28
export type AdjectivalModifier = Readonly < {
30
29
nounPreposition :
31
30
| null
@@ -34,7 +33,6 @@ export type AdjectivalModifier = Readonly<{
34
33
adjectives : ReadonlyArray < English . AdjectivePhrase > ;
35
34
name : null | string ;
36
35
ofPhrase : null | English . NounPhrase ;
37
- inPositionPhrase : null | English . NounPhrase ;
38
36
} > ;
39
37
export type AdverbialModifier = Readonly < {
40
38
adverbs : ReadonlyArray < English . Adverb > ;
@@ -180,7 +178,7 @@ function modifier(modifier: TokiPona.Modifier) {
180
178
case "nanpa" :
181
179
return nanpa ( modifier )
182
180
. map ( ( noun ) : ModifierTranslation => ( {
183
- type : "position phrase " ,
181
+ type : "noun " ,
184
182
noun,
185
183
} ) ) ;
186
184
}
@@ -213,18 +211,12 @@ export function multipleModifiers(
213
211
const names = modifiers
214
212
. flatMap ( ( modifier ) => modifier . type === "name" ? [ modifier . name ] : [ ] ) ;
215
213
216
- const inPositionPhrases = modifiers . flatMap ( ( modifier ) =>
217
- modifier . type === "position phrase" ? [ modifier . noun ] : [ ]
218
- ) ;
219
-
220
214
let adjectival : IterableResult < MultipleModifierTranslation > ;
221
215
if (
222
216
nouns . length <= 1 &&
223
217
nounPrepositions . length <= 1 &&
224
218
adverbs . length === 0 &&
225
- names . length <= 1 &&
226
- inPositionPhrases . length <= 1 &&
227
- ( nouns . length === 0 || inPositionPhrases . length === 0 )
219
+ names . length <= 1
228
220
) {
229
221
adjectival = IterableResult . single < MultipleModifierTranslation > ( {
230
222
type : "adjectival" ,
@@ -233,7 +225,6 @@ export function multipleModifiers(
233
225
adjectives,
234
226
name : names [ 0 ] ?? null ,
235
227
ofPhrase : nouns [ 0 ] ?? null ,
236
- inPositionPhrase : inPositionPhrases [ 0 ] ?? null ,
237
228
} ) ;
238
229
} else {
239
230
adjectival = IterableResult . empty ( ) ;
@@ -244,8 +235,7 @@ export function multipleModifiers(
244
235
nounPrepositions . length === 0 &&
245
236
determiners . length === 0 &&
246
237
adjectives . length <= 1 &&
247
- names . length === 0 &&
248
- inPositionPhrases . length === 0
238
+ names . length === 0
249
239
) {
250
240
const inWayPhrase : null | English . NounPhrase = adjectives . length > 0
251
241
? {
0 commit comments