Generate Text Versions

Overview

This function should be used when:

  • Your organization has an active usage subscription to the service.
  • The source text is written in English with a minimum length of two sentences.
  • The source text adheres to our editing guidelines.
  • The content can be shared with an LLM to have it rewritten to a specific Lexile measure.

URL

POST https://analyzer-rest-api.lexile.com/api/text-generation

Request

The following parameters are required in the request. An example can be found here.

Parameter Type Description
text String The desired English text for analysis. There is a minimum of two sentences for the text to be measurable.
textGenTargetLexile Integer The desired Lexile measure for the generated versions of a source text.

Response

This returns an object that contains three revisions of an English source text written to a targeted Lexile measure.

Table 1. Response
Parameter Type
language String
wordCount Integer
version String
lexile Integer
lexileDisplay String
generatedTexts Array
Table 2. generatedTexts Array Structure
Parameter Type
language String
wordCount Integer
version String
lexile Integer
lexileDisplay String
text String