Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Writing inspector
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-181
Writing inspector
Commits
211e5ba0
Commit
211e5ba0
authored
Nov 06, 2020
by
it17005340hiruni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a comment
parent
82d79a8b
Pipeline
#1961
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/routes/language_handler.js
src/routes/language_handler.js
+3
-1
No files found.
src/routes/language_handler.js
View file @
211e5ba0
...
@@ -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
()){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment