clic.text: Text endpoint

Return the full text for a given book.

  • corpora: Book name (‘AgnesG’) to return. Multiple books / corpora not supported.
  • regions: Region rclass(es) to return, e.g. ‘quote.quote’

Parameters should be provided in querystring format, for example:

/text?corpora=AgnesG&regions=quote.quote&regions=quote.suspension.short

Returns content with the entire book text, and a data array with the name/lower/upper/rvalue for each region.

Examples:

{
    "content": "It was the best of times...",
    "data": [
        ["metadata.title", 0, 11, null],
        ["metadata.author", 12, 27, null],
        ["chapter.title", 30, 52, 1],
        ["chapter.sentence", 56, 63, 2],
        ["chapter.sentence", 63, 146, 3],
        ["chapter.sentence", 146, 174, 4],
        ["chapter.sentence", 174, 397, 5],
          . . .
    ]
}
clic.text.text(cur, corpora=[], regions=[])