Measure Text

Overview

You can use this method to send text and receive a Lexile measure. Before you submit text for analysis you should make sure it's properly formatted.

Method

analyzer.analyze(text, [language])

Parameters

The only parameter you need to include is the text to be analyzed.

Parameter Type Description
text

String

The text to be analyzed.

language

Optional String

The language of the text. This is optional and does not need to be provided.

Response

The response will look similar to
{
    'lexile': 400,
    'lexile_display': '400L',
    'mlf': 3.7460290817322215,
    'msl': 4.5,
    'version': '6.0.0',
    'word_count': 9,
}
Parameter Type Description
lexileMeasure Number The Lexile measurement.

Example: 400

lexileMeasureDisplay Number This is the measure you should use when you publish or share a measurement. The letters included with the measure indicate what type of measure this is.

In this example, the L means this is a Lexile measure. Example: 400L

mlf

Integer

Mean Log Word Frequency

The logarithm of the number of times a word appears in each 5 million words of the Lexile Corpus of 1.5 billion words. Word frequency is not the number of times a word appears in a specific passage, but the frequency of the word in the Lexile Corpus.

word_count

Number

Total number of words in a text.