Get Challenging Words
Overview
Use this call to get a list of vocab words from your text that are more challenging than the text. A word is considered more challenging when is has a higher Lexile measure than the measure for the text. 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 list of challenging vocabulary words from the text. 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_challenging_vocab_words(text)