search_texts: Search words in texts

View source: R/texts.R

search_textsR Documentation

Search words in texts

Description

Search words in the texts collection.

Usage

search_texts(lexadb, word = NULL, whole = TRUE, gloss = NULL)

Arguments

lexadb

A lexadb object (created with load_lexadb).

word

A regular expression to search among the sentences.

whole

Whether to search for whole words (TRUE by default).

gloss

A regular expression to search among the glosses.

Value

A list of lexalx objects.

Examples

db_path <- system.file("extdata/albanian_lexadb", package = "lexa")
albanian <- load_lexadb(db_path)

search_texts(albanian, "rrezet")
search_texts(albanian, gloss = "sun")
search_texts(albanian, gloss = "traveller")

stefanocoretta/lexa documentation built on Feb. 4, 2024, 6:49 p.m.