using Tabulae
g = lmpGender("masculine")
c = lmpCase("accusative")
n = lmpNumber("singular")
noun = LMFNoun(g,c,n)LMFNoun(LMPGender(1), LMPCase(4), LMPNumber(1))
Package version: 0.12.0
June 6, 2024
See the reference section for a list of analytical types in Tabulae.
This page is highly incomplete
Values for morphological form are expressed with types that have names beginning with LMF (for “Latin Morphological Form”). Each type has a corresponding function beginning with lowercase lmf that can construct an instance of the type from either a numeric code or a type-specific list of string values.
LatinMorphologicalFormsImplementations of the abstract LatinMorphologicalForm model the properties identifying a particular type of token. For example, a LMFNoun has properties for gender, case and number. Each of these properties in turn are subtypes of the LatinMorphologicalProperty. We can construct a form directly from these properties. For example, a LMFNoun can be constructed like this:
Forms are identified by a Cite2Urn belonging to the collection urn:cite2:tabulae:forms.v1.
As citable objects, they include the label function.
Object identifiers in this collection are ten-character strings with each character representing an integer code for the following morphological properties:
In the following line, the initial digit 2 means “noun form”; the number value 1 means singular; the gender value 3 means “neuter” and the case value 1 means “nominative”.
Convenience methods let you work with these identifiers directly, or as a FormUrn (from the CitableParserBuilder package).
For each subtype of LatinMorphologicalForm, a corresponding constructor function (with a name beginning in lowercase) accepts a variety of kinds of sources for a form, such as a Cite2Urn:
Other sources you can use to create a LatinMorphologicalForm include strings, abbreviated URNs, Analysis objects and TabulaeRule objects. See the API documentation for details.
Each implementation of the LatinMorphologicalProperty has a corresponding lower-case function you can use to extract that property from a form.
You can use the code and label functions to find an integer code and readable string for any morphological property.