example.ts
Literacy evaluators family
The Text Complexity Evaluator runs multiple literacy evaluators on the provided text input:- Grade Level Appropriateness
- Subject Matter Knowledge v0.2.0
- Vocabulary
- Sentence Structure
- Conventionality v0.3.0
- Purpose v0.5.0
- Throws an error if all literacy evaluators fail
- Otherwise outputs an error or result for each literacy evaluator
For other evaluators
All literacy evaluators besides the parent Text Complexity Evaluator have the following output fields.| Field | Type | Description |
|---|---|---|
score | TextComplexityLevel ↗ | Complexity classification returned by the evaluator. Purpose evaluator also accepts “More context needed” for cases where the text alone is insufficient to determine complexity. |
reasoning | string | Explanation for the assigned complexity score |
metadata | EvaluationMetadata ↗ | Includes model used to generate the evaluation, total evaluation processing time in milliseconds, input tokens, and output tokens. |
_internal | Unique to each evaluator | Detailed internal analysis data specific to each evaluator. |
_internal field includes detailed internal analysis data specific to that evaluator: