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.
| Method | Path | Summary | Key params | Response |
|---|---|---|---|---|
| GET | /word-cloud | On-demand TF-IDF word cloud (corpus, collection, or libro) | — | WordCloudResponse |
| GET | /word-cloud/cached | Pre-computed word cloud from the startup cache | collection (query:string) | WordCloudResponse |
| GET | /word-cloud/libro | On-demand libro Information-Gain word cloud | collection (query:string)libro (query:integer) | WordCloudResponse |
| GET | /word-cloud/page | Per-page TF-IDF word cloud | collection (query:string)libro (query:integer)page (query:integer) | WordCloudResponse |
| GET | /words | Vocabulary list and autocomplete | — | WordSuggestion[] |
Examples
Section titled “Examples”List the top words in the corpus
curl -H "X-API-Key: $API_KEY" "$ARCHAIC/words?limit=200"