Learn R Programming

RKorAPClient (version 1.4.0)

'KorAP' Web Service Client Package

Description

A client package that makes the 'KorAP' web service API accessible from R. The corpus analysis platform 'KorAP' has been developed as a scientific tool to make potentially large, stratified and multiply annotated corpora, such as the 'German Reference Corpus DeReKo' or the 'Corpus of the Contemporary Romanian Language CoRoLa', accessible for linguists to let them verify hypotheses and to find interesting patterns in real language use. The 'RKorAPClient' package provides access to 'KorAP' and the corpora behind it for user-created R code, as a programmatic alternative to the 'KorAP' web user-interface. You can learn more about 'KorAP' and use it directly on 'DeReKo' at .

Copy Link

Version

Install

install.packages('RKorAPClient')

Monthly Downloads

279

Version

1.4.0

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Kupietz

Last Published

September 9th, 2026

Functions in RKorAPClient (1.4.0)

defaultKorAPUrl

Default KorAP server URL
fetchAll,KorAPQuery-method

Fetch all results of a KorAP query.
fetchAnnotations,KorAPQuery-method

Fetch annotations for all collected matches
hc_add_onclick_korap_search

Add KorAP search click events to highchart plots
fetchAnnotations

Fetch annotations (generic)
get_cache_indicator

Get cache indicator string
hc_freq_by_year_ci

Plot interactive frequency curves with confidence intervals
fetchRest,KorAPQuery-method

Fetches the remaining results of a KorAP query.
fetchNext,KorAPQuery-method

Fetch the next bunch of results of a KorAP query.
frequencyQuery,KorAPConnection-method

Query frequencies of search expressions in virtual corpora
format_duration

Format duration in seconds to human-readable format
format_eta_display

Format ETA information for display
parse_xml_annotations

Parse XML annotations into linguistic layers
mergeDuplicateCollocates

Merge duplicate collocate rows and re-calculate association scores and URLs. Useful if collocation analyses were performed separately for collocates on the left and right side of a node.
ci

Add confidence interval and relative frequency variables
log_info

Logging utilities for RKorAPClient
reexports

Objects exported from other packages
show,KorAPConnection-method

Display KorAPConnection object
withCachedResults

Take cached results as they are for the duration of an expression
persistAccessToken,KorAPConnection-method

Persist current access token in keyring
textMetadata,KorAPConnection-method

Retrieve metadata for a text, identified by its sigle (id)
synsemanticStopwords

Preliminary synsemantic stopwords function
initialize,KorAPConnection-method

Initialize KorAPConnection object
parse_xml_annotations_structured

Parse XML annotations into linguistic layers with left/match/right structure
initialize,KorAPQuery-method

Initialize KorAPQuery object
KorAPConnection-class

Connect to KorAP Server
RKorAPClient-package

R Client for KorAP Corpus Analysis Platform
cacheAsInfo

What produced a cacheAs file
association-score-functions

Association score functions
auth,KorAPConnection-method

Authorize RKorAPClient
blessCacheAs

Vouch for a cacheAs file that an older version wrote
clearCache,KorAPConnection-method

Clear local cache
corpusQuery,KorAPConnection-method

Search corpus for query terms
clearAccessToken,KorAPConnection-method

Clear access token from keyring and KorAPConnection object
collocationAnalysis,KorAPConnection-method

Collocation analysis
corpusStats,KorAPConnection-method

Get corpus size and statistics
collocationScoreQuery,KorAPConnection-method

Query frequencies of a node and a collocate and calculate collocation association scores
apiCall,KorAPConnection-method

Internal API call method
KorAPQuery-class

KorAPQuery class (internal)
KorAPCorpusStats-class

KorAPCorpusStats class (internal)
calculate_eta

Calculate and format ETA for batch operations
calculate_sophisticated_eta

Calculate sophisticated ETA using median of recent non-cached times
cacheAs

Keeping results in a file of one's own