fix english appearing for intransitives
This commit is contained in:
parent
1bf14eb44f
commit
004bdeb352
|
@ -154,8 +154,10 @@ function compileEnglish(VP: VPRendered): string[] | undefined {
|
||||||
const engSubj = VP.subject.e || undefined;
|
const engSubj = VP.subject.e || undefined;
|
||||||
const engObj = (typeof VP.object === "object" && VP.object.e) ? VP.object.e : undefined;
|
const engObj = (typeof VP.object === "object" && VP.object.e) ? VP.object.e : undefined;
|
||||||
// require all English parts for making the English phrase
|
// require all English parts for making the English phrase
|
||||||
return (VP.englishBase && engSubj && engObj) ? VP.englishBase.map(e => insertEWords(e, {
|
return (VP.englishBase && engSubj && (engObj || typeof VP.object !== "object"))
|
||||||
subject: engSubj,
|
? VP.englishBase.map(e => insertEWords(e, {
|
||||||
object: engObj,
|
subject: engSubj,
|
||||||
})) : undefined;
|
object: engObj,
|
||||||
|
}))
|
||||||
|
: undefined;
|
||||||
}
|
}
|
Loading…
Reference in New Issue