lojban-0.3: Useful utilities for the Lojban language

Language.Lojban.Jbovlaste

Contents

Synopsis

Types

data JboDB Source

Instances

data JboValsi Source

An opaque data type on which accessors can be used.

Generation of the database

genDB :: FilePath -> IO JboDBSource

Generate a database from the Jbovlaste XML export file.

genDBString :: String -> JboDBSource

Generate a database from the Jbovlaste XML export.

readDB :: FilePath -> IO JboDBSource

Read in a database from file.

Querying the database

findValsi :: JboDB -> (JboValsi -> Bool) -> Maybe JboValsiSource

Find valsi(s) by a predicate.

filterValsi :: JboDB -> (JboValsi -> Bool) -> [JboValsi]Source

Filter valsi(s) by a predicate.

valsi :: JboDB -> String -> [JboValsi]Source

Find valsi(s) by word or gloss or rafsi.

defSub :: JboDB -> String -> [JboValsi]Source

Find valsi(s) by definition substring.

defWildCard :: JboDB -> String -> [JboValsi]Source

Find valsi(s) by definition wild card string.

Accessing parts of valsis

valsiWord :: JboValsi -> StringSource

Get the word of a valsi.

valsiGloss :: JboValsi -> [String]Source

Get the gloss(es) of a valsi.

valsiDef :: JboValsi -> StringSource

Get the definition of a valsi.

valsiRafsis :: JboValsi -> [String]Source

Get any rafsis of a valsi.

valsiNotes :: JboValsi -> StringSource

Get the notes of a valsi.

valsiSelma'o :: JboValsi -> Maybe StringSource

Get the selma'o of a cmavo (Nothing for non-cmavo).

valsiSelrafsis :: JboValsi -> [JboValsi]Source

Get the selrafsis of a lujvo (empty list for non-lujvo).

valsiType :: JboValsi -> JboValsiTypeSource

Get the type of a valsi.

Showing valsi