Noun #
The noun as a lexical entry: its citation form and its gloss, everything a noun of any language carries. A language with gender extends the entry with the controller gender in its own carrier, the gender the language's assignment rules give the noun, and with whether that gender follows the referent's sex, the one facet every system with a semantic core reads; the facets particular rules read besides, animacy, rationality, declension class or accent, are the fields of the fragments' further extensions. The general concept takes the plain name and the specializations extend it, as in mathlib; a gendered noun bears the comparative label its carrier does.
Implementation notes #
- A fragment's extension is its own
Noun, in its namespace; a file that opens that namespace qualifies the name, the rootNounbeing in scope too.
Main declarations #
Noun— the noun entry.GenderedNoun G— the entry with its controller gender over the carrierG.
Equations
- instDecidableEqNoun.decEq { form := a, gloss := a_1 } { form := b, gloss := b_1 } = if h : a = b then h ▸ if h : a_1 = b_1 then h ▸ isTrue ⋯ else isFalse ⋯ else isFalse ⋯
Instances For
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- instReprNoun = { reprPrec := instReprNoun.repr }
@[instance_reducible]
instance
instDecidableEqGenderedNoun
{G✝ : Type u_1}
[DecidableEq G✝]
:
DecidableEq (GenderedNoun G✝)
def
instDecidableEqGenderedNoun.decEq
{G✝ : Type u_1}
[DecidableEq G✝]
(x✝ x✝¹ : GenderedNoun G✝)
:
Decidable (x✝ = x✝¹)
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- instReprGenderedNoun = { reprPrec := instReprGenderedNoun.repr }
@[instance_reducible]
A gendered noun bears the comparative label of its gender.
Equations
- instHasGenderGenderedNoun = { genderOf := fun (n : GenderedNoun G) => genderOf n.gender }