Skip to contents

It shows the entry with the given id.

Usage

show_entry(lexadb, entry_id)

Arguments

lexadb

A lexadb object (created with load_lexadb).

entry_id

A string with the entry id (the lx_ prefix and leading zeros can be omitted.)

Value

A lexalx object.

Examples

db_path <- system.file("extdata/eleryon_lexadb", package = "lexa")
eleryon <- load_lexadb(db_path)
#>  Loading lexa database...

show_entry(eleryon, 6)
#> 
#> ── Entry lx_000006 ─────────────────────────────────────────────────────────────
#> urųrtose [uryrtose] verb (I)
#> 
#> ── Senses ──
#> 
#> 1. to sit
#> 
#>           ── Examples 
#>           Ęs ętsu urųrtō enēim kę̄syoh bhųl enēim āireᵃph likhpyūaq. [tx
#>           000001:st_000001]
#>           And then I sat on a rock, while it was raining over me.
#>           
#>           Ksǫnteziṇ gartosesī ōroi Vāisi su Meukha su vēsyēl selo ellāimōma e
#>           ēim āireᵃph. [tx_000001:st_000002]
#>           With pleasure I tell you about the Sun, the Moon and the stars that
#>           are above us.
#>           
#> 
#> ── Grammatical info ──
#> 
#> Category: lexical
#> Type: root
#> 
#> ── Allomorphs ──
#> 
#>  ųrt [yrt]
#>  urųrt [uryrt]
# Same as:
show_entry(eleryon, "lx_000006")
#> 
#> ── Entry lx_000006 ─────────────────────────────────────────────────────────────
#> urųrtose [uryrtose] verb (I)
#> 
#> ── Senses ──
#> 
#> 1. to sit
#> 
#>           ── Examples 
#>           Ęs ętsu urųrtō enēim kę̄syoh bhųl enēim āireᵃph likhpyūaq. [tx
#>           000001:st_000001]
#>           And then I sat on a rock, while it was raining over me.
#>           
#>           Ksǫnteziṇ gartosesī ōroi Vāisi su Meukha su vēsyēl selo ellāimōma e
#>           ēim āireᵃph. [tx_000001:st_000002]
#>           With pleasure I tell you about the Sun, the Moon and the stars that
#>           are above us.
#>           
#> 
#> ── Grammatical info ──
#> 
#> Category: lexical
#> Type: root
#> 
#> ── Allomorphs ──
#> 
#>  ųrt [yrt]
#>  urųrt [uryrt]