isQuestion
Stentor API Reference / stentor-utils/src / isQuestion
Function: isQuestion()
isQuestion(
sentence):boolean
Defined in: packages/stentor-utils/src/text.ts:76
Determines if a given sentence is a question. A sentence is considered a question if it ends with a question mark.
Parameters​
sentence​
string
The input sentence to be checked.
Returns​
boolean
True if the sentence is a question, false otherwise.