Skip to main content

$caila.markup

Parses the argument text.

Syntax

The method accepts the text for parsing in the string argument:

$caila.markup("markup text")

The parsed phrase is returned in the JSON format in response: The parsing result for the markup text phrase is:

{
"source":"markup text", // phrase to be parsed
"words":[
{
"annotations":{
"lemma":"markup",
"pos":"X" // part of speech
},
"startPos":0, // word position in the phrase
"endPos":6,
"pattern":false,
"punctuation":false,
"source":"markup",
"word":"markup" // normalized word form
},
{
"annotations":{
"lemma":"text",
"pos":"X" // part of speech
},
"startPos":7, // word position in the phrase
"endPos":11,
"pattern":false,
"punctuation":false,
"source":"text",
"word":"text" // normalized word form
}
]
}

How to use

    state:
q!: markup text
script:
$reactions.answer(JSON.stringify($caila.markup("markup text")));