@@ -4,7 +4,7 @@ import * as TokiPona from "../parser/ast.ts";
4
4
import * as English from "./ast.ts" ;
5
5
import { FilteredError , TranslationTodoError } from "./error.ts" ;
6
6
import { nanpa } from "./nanpa.ts" ;
7
- import { perspective } from "./noun.ts" ;
7
+ import { perspective , quantity } from "./noun.ts" ;
8
8
import { multiplePhrases , multiplePhrasesAsNoun } from "./phrase.ts" ;
9
9
import { predicate } from "./predicate.ts" ;
10
10
import { nounAsPreposition , preposition } from "./preposition.ts" ;
@@ -81,7 +81,7 @@ function liClause(clause: TokiPona.Clause & { type: "li clause" }) {
81
81
predicate ( clause . predicates , "li" ) ,
82
82
)
83
83
. flatMap ( ( [ subject , predicate ] ) =>
84
- verb ( predicate , perspective ( subject ) , subject . quantity )
84
+ verb ( predicate , perspective ( subject ) , quantity ( subject ) )
85
85
. map ( ( verb ) => ( {
86
86
type : "simple" ,
87
87
subject,
@@ -149,15 +149,16 @@ function oClause(clause: TokiPona.Clause & { type: "o clause" }) {
149
149
return IterableResult . combine ( subject , predicate ( clause . predicates , "o" ) )
150
150
. flatMap ( ( [ subject , predicate ] ) => {
151
151
const subjectPerspective = perspective ( subject ) ;
152
+ const subjectQuantity = quantity ( subject ) ;
152
153
return IterableResult . concat (
153
- verb ( predicate , subjectPerspective , subject . quantity )
154
+ verb ( predicate , subjectPerspective , subjectQuantity )
154
155
. map ( ( verb ) => iWish ( subject , verb ) ) ,
155
156
IterableResult . from ( ( ) => {
156
157
const takeNegative = true ;
157
158
return verb (
158
159
addModalToAll ( "should" , predicate , takeNegative ) ,
159
160
subjectPerspective ,
160
- subject . quantity ,
161
+ subjectQuantity ,
161
162
) ;
162
163
} )
163
164
. map ( ( verb ) => ( {
0 commit comments