Commit 211e5ba0 authored by it17005340hiruni's avatar it17005340hiruni

Adding a comment

parent 82d79a8b
Pipeline #1961 canceled with stages
...@@ -15,6 +15,8 @@ const TENSE = { ...@@ -15,6 +15,8 @@ const TENSE = {
router.post('/', async (req, res) => { router.post('/', async (req, res) => {
try { try {
// IMPORTANT - When you send the sentence you must have a shape. - ex: [subject] [object] [verb]
var inputText = req.body.inputText; var inputText = req.body.inputText;
var requestedTense = req.body.tense; var requestedTense = req.body.tense;
...@@ -37,7 +39,7 @@ router.post('/', async (req, res) => { ...@@ -37,7 +39,7 @@ router.post('/', async (req, res) => {
} }
// pick subject and verb // pick subject and verb
// IMPORTANT - When you send the sentence you must have a shape. - ex: [subject] [object] [verb]
//find the subject //find the subject
for(var [idx, val] of sentenceArr.entries()){ for(var [idx, val] of sentenceArr.entries()){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment