Skip to content

Vocabulary API

The Vocabulary surface exposes the KWS lexicon: which UPPERCASE tokens appear in the corpus, with what frequency, at what hierarchy scope. Use it to power autocomplete, prefix lookups, or visual word-cloud widgets.

MethodPathSummaryKey paramsResponse
GET/word-cloudOn-demand TF-IDF word cloud (corpus, collection, or libro)WordCloudResponse
GET/word-cloud/cachedPre-computed word cloud from the startup cachecollection (query:string)WordCloudResponse
GET/word-cloud/libroOn-demand libro Information-Gain word cloudcollection (query:string)
libro (query:integer)
WordCloudResponse
GET/word-cloud/pagePer-page TF-IDF word cloudcollection (query:string)
libro (query:integer)
page (query:integer)
WordCloudResponse
GET/wordsVocabulary list and autocompleteWordSuggestion[]

List the top words in the corpus

Terminal window
curl -H "X-API-Key: $API_KEY" "$ARCHAIC/words?limit=200"