Skip to content

Commit 11f670f

Browse files
committed
finished transforming NOUN into SUBJ for issue #7
1 parent bd51660 commit 11f670f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

functions/prepares.js

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function prepareMetaNOUN(obj, personsPlurals, personsGenders, defaults){
8989
}
9090

9191
obj.type = 'SUBJ' //HERE: this might be temporary, for now it seems to be no difference between a SUBJ and a NOUN
92+
obj.types = obj.types.map(t => t === 'NOUN' ? 'SUBJ' : t)
9293

9394
return obj;
9495
}

functions/routing.js

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ app.post('/realise', allowCors, (req, res) => {
9090
res.status(400).send({err: 'Wrong request body, missing properties words and/or types'})
9191
return;
9292
}
93-
log(body)
9493
const forces = {...req.query}
9594
prepareSentence(body.words, body.types, body.props || {}, body.language || 'en')
9695
.then(prepared => parseDependencies(prepared, [], body.language || 'en'))

0 commit comments

Comments
 (0)