search_lexicon | R Documentation |
Search entries in the lexicon, by entry form or sense definitions.
search_lexicon(
lexadb,
entry = NULL,
whole = TRUE,
definition = NULL,
pos = NULL
)
lexadb |
A |
entry |
A regular expression to search among entries. |
whole |
Whether to search for whole words (only applies to |
definition |
A regular expression to search among sense definitions. |
pos |
A regular expression to match the part of speech. |
A list of lexalx
objects.
db_path <- system.file("extdata/eleryon_lexadb", package = "lexa")
eleryon <- load_lexadb(db_path)
# Search for "chǭs"
search_lexicon(eleryon, "chǭs")
# Search for all verbs
search_lexicon(eleryon, ".*", pos = "verb")
# Search for entry with meaning "love"
search_lexicon(eleryon, definition = "love")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.