Skip to content

Commit 7f7a8a3

Browse files
committed
improve filter
1 parent 42aee1f commit 7f7a8a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/translator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ function multipleModifiers(
429429
let adverbial: Output<MultipleModifierTranslation>;
430430
if (
431431
noun.length === 0 &&
432+
nounPreposition.length === 0 &&
432433
determiner.length === 0 &&
433434
adjective.length <= 1 &&
434435
name.length === 0 &&
@@ -1296,3 +1297,4 @@ function multipleSentences(
12961297
export function translate(src: string): Output<Array<English.Sentence>> {
12971298
return parse(src).flatMap(multipleSentences);
12981299
}
1300+
translate("toki pona");

0 commit comments

Comments
 (0)