Skip to content

Commit 893bac0

Browse files
committed
WIP preposition
1 parent 8acfd89 commit 893bac0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/translator/ast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export type Clause =
8484
| { type: "vocative"; call: string; addressee: NounPhrase }
8585
| { type: "dependent"; conjunction: Word; clause: Clause };
8686
export type Preposition = {
87+
adverb: Array<Word>;
8788
preposition: Word;
8889
object: NounPhrase;
8990
};

src/translator/preposition.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TranslationTodoError } from "./error.ts";
55
import { unemphasized } from "./word.ts";
66

77
export function preposition(
8-
preposition: TokiPona.Preposition,
8+
_preposition: TokiPona.Preposition,
99
): Output<English.Preposition> {
1010
throw new TranslationTodoError("preposition");
1111
}
@@ -14,6 +14,7 @@ export function nounAsPreposition(
1414
preposition: string,
1515
): English.Preposition {
1616
return {
17+
adverb: [],
1718
preposition: unemphasized(preposition),
1819
object: phrase,
1920
};

0 commit comments

Comments
 (0)