Get Targeted Words
Overview
Use this call to get a list of vocab words from your text that are close to the measure of the text. The words will be within a range that is 50L below and 100L above the text's Lexile measure.
You can use options to customize the list of returned words.
Parameters
Parameter | Type | Description |
---|---|---|
text |
String |
The text you want to extract vocabulary words from. |
options |
Struct |
The options argument is optional. If provided it can contain the
following:
|
Response
This returns a simple list containing the targeted vocabulary words that match the
provided parameters. By default, 10 words are returned unless you have set a
different max_word_count
.
Example
This is an example of how to make the call using
Java.
import xmlrpclib rpc = xmlrpclib.ServerProxy('https://user:pass@vocabulary.lexile.com/API') text = open('sample_text.txt').read() vocab_words = rpc.vocab.get_targeted_vocab_words(text)