Input
input
: The original input text or dataoutput
: The input string to check for occurrencesexpectedOutput
: The expected output to compare against.
- Any of the input variables (
input
,output
,expectedOutput
) can be marked as optional. - The returned value from the
validate
function can be a boolean, string, or a number.
Output
Result
: Boolean (true
orfalse
) | string | number
Interpretation
Assuming this evaluator returns a boolean
- true: The word appears at least once
- false: The word does not appear
This evaluator requires a function named
validate
.