ava_corpus: Avar search

Description Usage Arguments Author(s) Examples

Description

Post query to the Avar Text Corpus (http://baltoslav.eu/avar/index.php, 2,000,693 words). Don't forget to check main page for advanced query language.

Usage

1
ava_corpus(query, n_results = 20, kwic = TRUE, write = FALSE)

Arguments

query

Vector of length 1 which contain query.

n_results

Integer. Defines number of examples from the corpus. By default is 10

kwic

Logical. KWIC (key word in context) is the format for resulted lines. If TRUE, then it returns a dataframe with query in the middle and left and right contexts. If FALSE, then it returns each result in one string. By default is TRUE.

write

This argument writes a file in the working derictory (see function getwd() and setwd() for more information). If FALSE, then it creates a dataframe in Global Environment. Otherwise function writes a .tsv file with the name frome the argument value. By default is FALSE.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
2
3
4
ava_corpus("магIарул")
ava_corpus("магIарул*")
ava_corpus("ва(ц|с)азе", n_results = 13)
ava_corpus("(чIужу|руччаби)", kwic = F)

agricolamz/lingcorpora.R documentation built on May 10, 2019, 7:34 a.m.