Skip to content

Commit d98e109

Browse files
committed
this filter is actually needed
1 parent 9df3a8a commit d98e109

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/translator/fixer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function rankNoun(noun: English.NounPhrase): number {
1515
function fixNounPhrase(noun: English.NounPhrase): English.NounPhrase {
1616
switch (noun.type) {
1717
case "simple":
18-
// if (noun.postAdjective != null && noun.prepositions.length > 0) {
19-
// throw new FilteredError("named noun with preposition");
20-
// }
18+
if (noun.postAdjective != null && noun.prepositions.length > 0) {
19+
throw new FilteredError("named noun with preposition");
20+
}
2121
if (
2222
noun.postCompound != null && noun.postCompound.type === "simple" &&
2323
noun.postCompound.prepositions.length > 0

0 commit comments

Comments
 (0)