@@ -8,7 +8,7 @@ import * as English from "./ast.ts";
8
8
import { findNumber , fixDeterminer } from "./determiner.ts" ;
9
9
import {
10
10
ExhaustedError ,
11
- FilteredOutError ,
11
+ FilteredError ,
12
12
TranslationTodoError ,
13
13
} from "./error.ts" ;
14
14
import { CONJUNCTION } from "./misc.ts" ;
@@ -47,7 +47,7 @@ function nounPhrase(
47
47
...partialNoun . adjective ,
48
48
] ) ;
49
49
if ( partialNoun . postAdjective != null && modifier . name != null ) {
50
- throw new FilteredOutError ( "double name" ) ;
50
+ throw new FilteredError ( "double name" ) ;
51
51
}
52
52
const postAdjective = partialNoun . postAdjective ??
53
53
mapNullable ( modifier . name , ( name ) => ( { adjective : "named" , name } ) ) ;
@@ -58,10 +58,10 @@ function nounPhrase(
58
58
. map ( ( object ) => nounAsPreposition ( object , "of" ) ) ,
59
59
] ;
60
60
if ( preposition . length > 1 ) {
61
- throw new FilteredOutError ( "multiple preposition within noun phrase" ) ;
61
+ throw new FilteredError ( "multiple preposition within noun phrase" ) ;
62
62
}
63
63
if ( preposition . length > 0 && postAdjective != null ) {
64
- throw new FilteredOutError ( "named noun with preposition" ) ;
64
+ throw new FilteredError ( "named noun with preposition" ) ;
65
65
}
66
66
const headNoun = fromNounForms ( partialNoun , quantity )
67
67
. map ( ( { noun, quantity } ) => ( {
@@ -132,7 +132,7 @@ function adjectivePhrase(
132
132
inWayPhrase : modifier . inWayPhrase ,
133
133
} ;
134
134
} else {
135
- throw new FilteredOutError ( "adverb with compound adjective" ) ;
135
+ throw new FilteredError ( "adverb with compound adjective" ) ;
136
136
}
137
137
}
138
138
}
@@ -346,7 +346,7 @@ export function multiplePhrases(
346
346
phrase . type === "adjective" && phrase . inWayPhrase != null
347
347
)
348
348
) {
349
- throw new FilteredOutError ( "in way phrase within compound" ) ;
349
+ throw new FilteredError ( "in way phrase within compound" ) ;
350
350
}
351
351
if ( phrase . every ( ( phrase ) => phrase . type === "noun" ) ) {
352
352
return {
0 commit comments