using OpenScripturesHebrew
words = tanakh()
words[1].codeMorphological data
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.
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 |> typeofOSHPreposition
morph1 |> typeof |> supertypeOSHMorphologicalForm