Constructor
Class
OpenScripturesHebrewMorphologyParser
OpenScripturesHebrewMorphologyParser()
Parses Open Scriptures Hebrew Morphology (OSHM) codes.
These codes are used by the Open Scriptures Hebrew Bible SWORD module to tag each word with grammatical information. Codes are prefixed with a language character (H=Hebrew, A=Aramaic) and use slash-separated segments for prefixes, main word, and suffixes.
Code format: Language[Prefix/...]/MainWord[/Suffix]
- Language: H (Hebrew) or A (Aramaic)
- Each segment starts with a POS character: A (Adjective), C (Conjunction), D (Adverb), N (Noun), P (Pronoun), R (Preposition), S (Suffix), T (Particle), V (Verb)
- Attributes follow POS: type, stem (verbs), conjugation (verbs), person, gender, number, state — depending on POS
- 'x' is used as a placeholder for unknown/unnecessary values
Reference:
- OSHM spec: https://hb.openscriptures.org/parsing/HebrewMorphologyCodes.html