Skip to content

Commit 02d413e

Browse files
committed
ensure in [adjective] way phrase is not ignored
1 parent 64faaab commit 02d413e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/translator/phrase.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,10 @@ export function phraseAsVerb(
305305
case "adjective": {
306306
let negated: boolean;
307307
let subjectComplement: English.Complement;
308+
let inWayPhrase: null | English.NounPhrase;
308309
switch (phrase.type) {
309310
case "noun": {
311+
inWayPhrase = null;
310312
const extract = extractNegativeFromNoun(phrase.noun);
311313
negated = extract != null;
312314
subjectComplement = {
@@ -316,6 +318,7 @@ export function phraseAsVerb(
316318
break;
317319
}
318320
case "adjective": {
321+
inWayPhrase = phrase.inWayPhrase;
319322
const extract = extractNegativeFromAdjective(phrase.adjective);
320323
negated = extract != null;
321324
subjectComplement = {
@@ -341,7 +344,8 @@ export function phraseAsVerb(
341344
subjectComplement,
342345
object: null,
343346
objectComplement: null,
344-
prepositions: [],
347+
prepositions: nullableAsArray(inWayPhrase)
348+
.map((noun) => nounAsPreposition(noun, "in")),
345349
forObject: false,
346350
predicateType: null,
347351
emphasis: false,

0 commit comments

Comments
 (0)