@@ -8,7 +8,7 @@ import * as English from "./ast.ts";
88import { findNumber , fixDeterminer } from "./determiner.ts" ;
99import {
1010 ExhaustedError ,
11- FilteredOutError ,
11+ FilteredError ,
1212 TranslationTodoError ,
1313} from "./error.ts" ;
1414import { CONJUNCTION } from "./misc.ts" ;
@@ -47,7 +47,7 @@ function nounPhrase(
4747 ...partialNoun . adjective ,
4848 ] ) ;
4949 if ( partialNoun . postAdjective != null && modifier . name != null ) {
50- throw new FilteredOutError ( "double name" ) ;
50+ throw new FilteredError ( "double name" ) ;
5151 }
5252 const postAdjective = partialNoun . postAdjective ??
5353 mapNullable ( modifier . name , ( name ) => ( { adjective : "named" , name } ) ) ;
@@ -58,10 +58,10 @@ function nounPhrase(
5858 . map ( ( object ) => nounAsPreposition ( object , "of" ) ) ,
5959 ] ;
6060 if ( preposition . length > 1 ) {
61- throw new FilteredOutError ( "multiple preposition within noun phrase" ) ;
61+ throw new FilteredError ( "multiple preposition within noun phrase" ) ;
6262 }
6363 if ( preposition . length > 0 && postAdjective != null ) {
64- throw new FilteredOutError ( "named noun with preposition" ) ;
64+ throw new FilteredError ( "named noun with preposition" ) ;
6565 }
6666 const headNoun = fromNounForms ( partialNoun , quantity )
6767 . map ( ( { noun, quantity } ) => ( {
@@ -132,7 +132,7 @@ function adjectivePhrase(
132132 inWayPhrase : modifier . inWayPhrase ,
133133 } ;
134134 } else {
135- throw new FilteredOutError ( "adverb with compound adjective" ) ;
135+ throw new FilteredError ( "adverb with compound adjective" ) ;
136136 }
137137 }
138138}
@@ -346,7 +346,7 @@ export function multiplePhrases(
346346 phrase . type === "adjective" && phrase . inWayPhrase != null
347347 )
348348 ) {
349- throw new FilteredOutError ( "in way phrase within compound" ) ;
349+ throw new FilteredError ( "in way phrase within compound" ) ;
350350 }
351351 if ( phrase . every ( ( phrase ) => phrase . type === "noun" ) ) {
352352 return {
0 commit comments