Query lexical databases

query.lu(
  lu,
  isSimp = FALSE,
  regex = FALSE,
  db = c("deeplex", "cld"),
  as_tibble = TRUE
)

Arguments

lu

A string. The lexical unit to be queried in the databases.

isSimp

Logical. Whether lu is in simplified Chinese. Defaults to FALSE, which treat lu as traditional Chinese.

regex

Logical. Whether to use a regular expression pattern in the argument lu for searching. Defaults to FALSE, which searches for exact matches.

db

Character. The databases to be searched. Currently only deeplex and cld (Chinese Lexical Database) are available.

as_tibble

Logical. Whether to convert the query results to a tibble (a special type of data.frame provided by the package tibble). Defaults to TRUE, which makes the data frame printed out in the console to have a nicer look.

Value

A data frame (tibble).