Skip to content

Commit 0dc4ed9

Browse files
committed
move given conjunction
1 parent 90fd346 commit 0dc4ed9

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/translator/clause.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ export function contextClause(
213213
new TranslationTodoError(`${contextClause.type} context clause`),
214214
);
215215
default:
216-
return clause(contextClause);
216+
return clause(contextClause).map((clause) => ({
217+
type: "dependent",
218+
conjunction: noEmphasis("given"),
219+
clause,
220+
}));
217221
}
218222
}

src/translator/sentence.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,7 @@ function sentence(
131131
switch (sentence.type) {
132132
case "default": {
133133
const laClauses = sentence.laClauses;
134-
const givenClauses = ArrayResult.combine(
135-
...laClauses.map(contextClause),
136-
)
137-
.map((clauses) =>
138-
clauses.map<English.Clause>((clause) => ({
139-
type: "dependent",
140-
conjunction: {
141-
word: "given",
142-
emphasis: false,
143-
},
144-
clause,
145-
}))
146-
);
134+
const givenClauses = ArrayResult.combine(...laClauses.map(contextClause));
147135
if (sentence.startingParticle != null) {
148136
return new ArrayResult(
149137
new TranslationTodoError(

0 commit comments

Comments
 (0)