# Corpus Analysis ## Start einer Session ```javascript nopaque.socket.emit("corpus_analysis_init", ); ~ number // Show init loading modal nopaque.socket.on("corpus_analysis_init", ); ~ {"code": , "msg": } ~ number // HTTP status code ~ string // Hide init loading modal ``` ## Ausführen einer Suchanfrage Ergebnisse werden Stückchenweise als "chunks" übertragen. ```javascript nopaque.socket.emit("corpus_analysis_query", ); ~ string // Clear result data store and list result = {"query": }; // Hide query result card // Show query loading card nopaque.socket.on("corpus_analysis_query", ); : {"code": , "result": } ~ number // Error, Success ~ {"matches": [, ...], "num_matches": , "cpos_lookup": {: , ...}, "text_lookup": {: , ...}} ~ number ~ number ~ {"word": , "lemma": , "simple_pos": , "pos": , "ner": , "text": , "s": } ~ string ~ string ~ string ~ string ~ string ~ number ~ number ~ {"author": , "title": , ...} ~ string // Process response // Hide query result card // Show query loading card ```