Morphological data

Published

November 9, 2024

The OpenScripturesHebrew.jl package includes a rich model for the morphological data encoded in the OSHB data as string codes. The morphological code is included as the code property in the named tuple that OpenScripturesHebrew.jl’s functions create when reading OSHB data.

using OpenScripturesHebrew
words = tanakh()
words[1].code

You can convert the tuple’s code value to a Julia object with the parseword function.

morph1 = parseword(words[1])
preposition

These Julia objects are subtypes of the abstract OSHMorphologicalForm.

morph1 |> typeof
OSHPreposition
morph1 |> typeof  |> supertype
OSHMorphologicalForm